X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=src%2FCFileData.cpp;h=52643f0473071d0b7efa6ae781adb9dd2fcda96f;hb=d581939511f482a3bfdaba7f6470de8939e6cd5e;hp=f3ebe92891340aefa9655200d6f14b0d0fe01d53;hpb=a0533dd345e4d7d60bc9cccb724e60875a42292c;p=quix0rs-blobwars.git diff --git a/src/CFileData.cpp b/src/CFileData.cpp index f3ebe92..52643f0 100644 --- a/src/CFileData.cpp +++ b/src/CFileData.cpp @@ -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;