string append more protection
This commit is contained in:
@@ -300,6 +300,7 @@ void PIString::appendFromChars(const char * c, int s, const char * codepage) {
|
||||
if (s == 0) return;
|
||||
int old_sz = size_s();
|
||||
if (s == -1) s = strlen(c);
|
||||
if (s <= 0) return;
|
||||
#ifdef PIP_ICU
|
||||
UErrorCode e((UErrorCode)0);
|
||||
UConverter * cc = ucnv_open(codepage, &e);
|
||||
|
||||
Reference in New Issue
Block a user