]> git.mxchange.org Git - quix0rs-blobwars.git/blobdiff - src/CFileData.cpp
Use strlcat() and strlcpy(), #define wrappers when these functions are not available.
[quix0rs-blobwars.git] / src / CFileData.cpp
index f3ebe92891340aefa9655200d6f14b0d0fe01d53..52643f0473071d0b7efa6ae781adb9dd2fcda96f 100644 (file)
@@ -36,7 +36,7 @@ void FileData::set(const char *filename, Uint32 fSize, Uint32 cSize, Uint32 loca
                return;
        }
        
-       strncpy(this->filename, filename, sizeof this->filename);
+       strlcpy(this->filename, filename, sizeof this->filename);
        
        this->fSize = fSize;
        this->cSize = cSize;