linux PIString fix

This commit is contained in:
2022-04-25 23:38:09 +03:00
parent 6ecd04b0d8
commit 44c52c40f1

View File

@@ -235,10 +235,10 @@ void PIString::appendFromChars(const char * c, int s, const char * codepage) {
memset(&state, 0, sizeof(state));
const char ** pc;
if (s > 0) {
const char c_ [s+1];
char c_ [s+1];
memcpy(c_, c, s);
c_[s] = '\0';
pc = &c_;
pc = &((const char *)c_);
} else {
pc = &c;
}