]> git.mxchange.org Git - quix0rs-blobwars.git/blobdiff - src/CData.cpp
Fix building pak.exe.
[quix0rs-blobwars.git] / src / CData.cpp
index 12642eddc75fab3be6a6d99249c56c7b2b701156..8a2f82a3919ea210a734c41830c2e692e8876664 100644 (file)
@@ -1,5 +1,6 @@
 /*
-Copyright (C) 2004 Parallel Realities
+Copyright (C) 2004-2011 Parallel Realities
+Copyright (C) 2011-2015 Perpendicular Dimensions
 
 This program is free software; you can redistribute it and/or
 modify it under the terms of the GNU General Public License
@@ -36,8 +37,8 @@ void Data::set(const char *key, const char *value, int current, int target)
                return;
        }
 
-       strncpy(this->key, key, sizeof this->key);
-       strncpy(this->value, value, sizeof this->value);
+       strlcpy(this->key, key, sizeof this->key);
+       strlcpy(this->value, value, sizeof this->value);
        this->current = current;
        this->target = target;
 }