linux PIString fix
This commit is contained in:
@@ -236,10 +236,10 @@ void PIString::appendFromChars(const char * c, int s, const char * codepage) {
|
||||
const char ** pc;
|
||||
char * c_ = nullptr;
|
||||
if (s > 0) {
|
||||
c_ = malloc(s+1);
|
||||
c_ = (char*)malloc(s+1);
|
||||
memcpy(c_, c, s);
|
||||
c_[s] = '\0';
|
||||
pc = &c_;
|
||||
pc = (const char **)&c_;
|
||||
} else {
|
||||
pc = &c;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user