diff options
Diffstat (limited to 'tools/lzpack/main.cpp')
| -rw-r--r-- | tools/lzpack/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/lzpack/main.cpp b/tools/lzpack/main.cpp index 3f0dcde..801cdd1 100644 --- a/tools/lzpack/main.cpp +++ b/tools/lzpack/main.cpp @@ -229,7 +229,7 @@ int CreateLZPfile(const char* packFile, FileListClass* fileList) { LZP_HEAD head; - strncpy(head.id, "LZP", 4); + strncpy(head.id, "LZP", sizeof(head.id)); head.numFiles = fileList->EntryCount(); fseek(packp, 0, SEEK_SET); |
