diff options
| author | John Wilbert Villamor <lameguy64@gmail.com> | 2019-06-08 09:10:08 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-06-08 09:10:08 +0800 |
| commit | ae9e545c3ed33d39ce21ae13ceb8337fa34901b8 (patch) | |
| tree | 2bdf33d37ed780af58007e14917ff361670500c3 | |
| parent | d9232579a11b8d9dceefdee308d54bd91979c85e (diff) | |
| parent | 6ee7a649f54e2141a61e90ae69ba2350ffd1e519 (diff) | |
| download | psn00bsdk-ae9e545c3ed33d39ce21ae13ceb8337fa34901b8.tar.gz | |
Merge pull request #6 from qbradq/issue-5
Swapped buffer length literal with sizeof operator
| -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); |
