linux PIString fix

This commit is contained in:
2022-04-25 23:37:06 +03:00
parent 964823b332
commit 6ecd04b0d8

View File

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