linux PIString fix

This commit is contained in:
2022-04-25 23:42:46 +03:00
parent c3cf0f3586
commit 892edb7d5b

View File

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