linux PIString fix
This commit is contained in:
@@ -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_;
|
||||||
|
|||||||
Reference in New Issue
Block a user