From 151deed5bc55c7dd5db1f1221726bfb76ee49cbc Mon Sep 17 00:00:00 2001 From: blueloveTH Date: Thu, 1 Feb 2024 15:13:19 +0800 Subject: [PATCH] some fix --- src/error.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/error.cpp b/src/error.cpp index f57aa27e..ddeab8b7 100644 --- a/src/error.cpp +++ b/src/error.cpp @@ -7,7 +7,7 @@ namespace pkpy{ // Skip utf8 BOM if there is any. if (strncmp(source.data(), "\xEF\xBB\xBF", 3) == 0) index += 3; // Drop all '\r' - SStream ss(source.size()); + SStream ss(source.size() + 1); while(index < source.size()){ if(source[index] != '\r') ss << source[index]; index++;