diff --git a/libs/main/core/pistring.cpp b/libs/main/core/pistring.cpp index d689ff34..cf56e1b8 100644 --- a/libs/main/core/pistring.cpp +++ b/libs/main/core/pistring.cpp @@ -238,7 +238,7 @@ 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_; + pc = &((const char *)&c_[0]); } else { pc = &c; }