linux PIString fix

This commit is contained in:
2022-04-25 23:40:17 +03:00
parent a57e51bdf8
commit 88ffd602d6

View File

@@ -238,7 +238,7 @@ void PIString::appendFromChars(const char * c, int s, const char * codepage) {
char c_ [s+1]; char c_ [s+1];
memcpy(c_, c, s); memcpy(c_, c, s);
c_[s] = '\0'; c_[s] = '\0';
pc = &(const char *)c_; pc = &((const char *)&c_[0]);
} else { } else {
pc = &c; pc = &c;
} }