From 2dec17e871a04fda759aed22a86017aa015e915f Mon Sep 17 00:00:00 2001 From: Andrey Date: Mon, 25 Apr 2022 23:41:21 +0300 Subject: [PATCH] linux PIString fix --- libs/main/core/pistring.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/main/core/pistring.cpp b/libs/main/core/pistring.cpp index cf56e1b8..8d2c780d 100644 --- a/libs/main/core/pistring.cpp +++ b/libs/main/core/pistring.cpp @@ -238,7 +238,8 @@ void PIString::appendFromChars(const char * c, int s, const char * codepage) { char c_ [s+1]; memcpy(c_, c, s); c_[s] = '\0'; - pc = &((const char *)&c_[0]); + const char * cc_ = &c_[0] + pc = &cc; } else { pc = &c; }