linux PIString fix

This commit is contained in:
2022-04-25 23:41:21 +03:00
parent 88ffd602d6
commit 2dec17e871

View File

@@ -238,7 +238,8 @@ 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_[0]); const char * cc_ = &c_[0]
pc = &cc;
} else { } else {
pc = &c; pc = &c;
} }