aboutsummaryrefslogtreecommitdiff
path: root/tools/lzpack/main.cpp
diff options
context:
space:
mode:
authorNorman B. Lancaster <qbradq@gmail.com>2019-06-06 15:50:23 -0500
committerNorman B. Lancaster <qbradq@gmail.com>2019-06-06 15:50:23 -0500
commit6ee7a649f54e2141a61e90ae69ba2350ffd1e519 (patch)
tree2bdf33d37ed780af58007e14917ff361670500c3 /tools/lzpack/main.cpp
parentd9232579a11b8d9dceefdee308d54bd91979c85e (diff)
downloadpsn00bsdk-6ee7a649f54e2141a61e90ae69ba2350ffd1e519.tar.gz
Swapped buffer length litteral with sizeof operator
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);