]> git.mxchange.org Git - quix0rs-blobwars.git/blobdiff - src/CPersistData.cpp
Do not use DESTDIR in PREFIX, but only in the install target.
[quix0rs-blobwars.git] / src / CPersistData.cpp
index cd4bf141fe7ecba819cd4e9693c43dbafa4db63b..255ce62a55e9525c331396fbc483a66b5c56cb1a 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
@@ -37,7 +37,7 @@ bool PersistData::setData(const char *data)
                return false;
        }
        
-       strncpy(this->data, data, sizeof this->data);
+       strlcpy(this->data, data, sizeof this->data);
        
        return true;
 }