From: Guus Sliepen Date: Sun, 17 Apr 2011 13:45:20 +0000 (+0200) Subject: Fix posting medals to the medal server. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=a2bc71744343250f7d5fcbd357fda360cdcc1cef;p=quix0rs-blobwars.git Fix posting medals to the medal server. --- 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);