From a2bc71744343250f7d5fcbd357fda360cdcc1cef Mon Sep 17 00:00:00 2001 From: Guus Sliepen <guus@debian.org> Date: Sun, 17 Apr 2011 15:45:20 +0200 Subject: [PATCH] Fix posting medals to the medal server. --- src/player.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/player.cpp b/src/player.cpp index 5a4aee4..da26502 100644 --- a/src/player.cpp +++ b/src/player.cpp @@ -66,7 +66,7 @@ void presentPlayerMedal(const char *tname) // Copy the input, so that threading // doesn't trip us up! char *data = new char[128]; - strlcpy(data, tname, sizeof data); + strlcpy(data, tname, 128); SDL_Thread *thread = SDL_CreateThread(medalWorker, (void*)data); -- 2.39.5