]> git.mxchange.org Git - quix0rs-blobwars.git/blobdiff - src/CKeyboard.cpp
Don't link pak tool with SDL.
[quix0rs-blobwars.git] / src / CKeyboard.cpp
index b9bc5bc9c79b6a28a9f7c74e182f776d2319ef5b..8f2287a0732a6b91dd9bbec67e4b0f303f85155a 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
@@ -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