diff options
| author | Norman B. Lancaster <qbradq@gmail.com> | 2019-06-06 15:50:23 -0500 |
|---|---|---|
| committer | Norman B. Lancaster <qbradq@gmail.com> | 2019-06-06 15:50:23 -0500 |
| commit | 6ee7a649f54e2141a61e90ae69ba2350ffd1e519 (patch) | |
| tree | 2bdf33d37ed780af58007e14917ff361670500c3 /tools/lzpack/main.cpp | |
| parent | d9232579a11b8d9dceefdee308d54bd91979c85e (diff) | |
| download | psn00bsdk-6ee7a649f54e2141a61e90ae69ba2350ffd1e519.tar.gz | |
Swapped buffer length litteral with sizeof operator
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); |
