]> git.mxchange.org Git - quix0rs-blobwars.git/blobdiff - src/CFileData.cpp
Don't link pak tool with SDL.
[quix0rs-blobwars.git] / src / CFileData.cpp
old mode 100755 (executable)
new mode 100644 (file)
index c9b989c..01c891f
@@ -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
@@ -22,7 +22,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 
 FileData::FileData()
 {
-       strcpy(filename, "");
+       filename[0] = 0;
        fSize = 0;
        cSize = 0;
        location = 0;
@@ -36,7 +36,7 @@ void FileData::set(const char *filename, Uint32 fSize, Uint32 cSize, Uint32 loca
                return;
        }
        
-       strcpy(this->filename, filename);
+       strlcpy(this->filename, filename, sizeof this->filename);
        
        this->fSize = fSize;
        this->cSize = cSize;