Fix posting medals to the medal server.
authorGuus Sliepen <guus@debian.org>
Sun, 17 Apr 2011 13:45:20 +0000 (15:45 +0200)
committerGuus Sliepen <guus@debian.org>
Sun, 17 Apr 2011 13:45:20 +0000 (15:45 +0200)
src/player.cpp

index 5a4aee44cf80401ac2687b42c6faf7de25a8e5c2..da26502a1fe8bace87e4604193c50b79bb4755b3 100644 (file)
@@ -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);