]> git.mxchange.org Git - quix0rs-blobwars.git/blobdiff - src/CKeyboard.cpp
Fix posting medals to the medal server.
[quix0rs-blobwars.git] / src / CKeyboard.cpp
index b9bc5bc9c79b6a28a9f7c74e182f776d2319ef5b..a548f12f442a632615e31885f65c407ff1ece70d 100644 (file)
@@ -1,5 +1,5 @@
 /*
-Copyright (C) 2004 Parallel Realities
+Copyright (C) 2004-2010 Parallel Realities
 
 This program is free software; you can redistribute it and/or
 modify it under the terms of the GNU General Public License
@@ -49,7 +49,7 @@ const char *Keyboard::translateKey(int key)
                return "...";
        }
        
-       strncpy(keyName, _(SDL_GetKeyName((SDLKey)key)), sizeof keyName);
+       strlcpy(keyName, _(SDL_GetKeyName((SDLKey)key)), sizeof keyName);
        
        /*
        This is not really neccessary, but it just makes