From b1ee038583f9eb578cc50a0d87ac9ba4ab08e8ec Mon Sep 17 00:00:00 2001 From: blueloveTH Date: Thu, 1 Feb 2024 12:07:21 +0800 Subject: [PATCH] some fix --- src/str.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/str.cpp b/src/str.cpp index ef2a7464..d328487c 100644 --- a/src/str.cpp +++ b/src/str.cpp @@ -17,7 +17,7 @@ int utf8len(unsigned char c, bool suppress){ if(this->size < sizeof(this->_inlined)){ \ this->data = this->_inlined; \ }else{ \ - this->data = (char*)pool64_alloc(this->size); \ + this->data = (char*)pool64_alloc(this->size+1); \ } #define PK_STR_COPY_INIT(__s) \