From 6ee7a649f54e2141a61e90ae69ba2350ffd1e519 Mon Sep 17 00:00:00 2001 From: "Norman B. Lancaster" Date: Thu, 6 Jun 2019 15:50:23 -0500 Subject: Swapped buffer length litteral with sizeof operator --- tools/lzpack/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/lzpack/main.cpp') 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); -- cgit v1.2.3