aboutsummaryrefslogtreecommitdiff
path: root/tools/lzpack/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/lzpack/main.cpp')
-rw-r--r--tools/lzpack/main.cpp2
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);