]> git.mxchange.org Git - quix0rs-blobwars.git/blobdiff - src/player.cpp
Don't link pak tool with SDL.
[quix0rs-blobwars.git] / src / player.cpp
index 151b07cc7d4ffcad3d6b1104b0f3ae863cec03f8..cc793b9faa67d9970c9c8275ecb096a54e425d4a 100644 (file)
@@ -1,5 +1,5 @@
 /*
-Copyright (C) 2004 Parallel Realities
+Copyright (C) 2004-2011 Parallel Realities
 
 This program is free software; you can redistribute it and/or
 modify it under the terms of the GNU General Public License
@@ -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];
-       strncpy(data, tname, sizeof data);
+       strlcpy(data, tname, 128);
        
        SDL_Thread *thread = SDL_CreateThread(medalWorker, (void*)data);