linux PIString fix

This commit is contained in:
2022-04-26 00:11:27 +03:00
parent 0aaa5ba890
commit cb179de856

View File

@@ -248,7 +248,7 @@ void PIString::appendFromChars(const char * c, int s, const char * codepage) {
mbsrtowcs(&wstr[0], pc, len+1, &state); mbsrtowcs(&wstr[0], pc, len+1, &state);
if (c_) free(c_); if (c_) free(c_);
enlarge(len); enlarge(len);
for (size_t i=0; i<len; ++i) (*this)[old_sz+i] = wstr[i]; for (size_t i=0; i<len; ++i) (*this)[old_sz+i] = PIChar(wstr[i]);
// //qDebug() << "FromChars done" << size(); // //qDebug() << "FromChars done" << size();
# endif # endif
#endif #endif