aboutsummaryrefslogtreecommitdiff
path: root/tools/lzpack/main.cpp
diff options
context:
space:
mode:
authorJohn Wilbert Villamor <lameguy64@gmail.com>2019-06-08 09:10:08 +0800
committerGitHub <noreply@github.com>2019-06-08 09:10:08 +0800
commitae9e545c3ed33d39ce21ae13ceb8337fa34901b8 (patch)
tree2bdf33d37ed780af58007e14917ff361670500c3 /tools/lzpack/main.cpp
parentd9232579a11b8d9dceefdee308d54bd91979c85e (diff)
parent6ee7a649f54e2141a61e90ae69ba2350ffd1e519 (diff)
downloadpsn00bsdk-ae9e545c3ed33d39ce21ae13ceb8337fa34901b8.tar.gz
Merge pull request #6 from qbradq/issue-5
Swapped buffer length literal 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);