COMMON: Restore old behaviour for appending char to string

Appending \0 to string and expecting it to be just dropped is
still an invalid behaviour but it already happened in 2 engines, so
restore old behaviour, at least for now
This commit is contained in:
Vladimir Serbinenko 2020-11-03 11:19:20 +01:00
parent b58abb64d7
commit 54b0b4ac4c

View File

@ -731,6 +731,8 @@ TEMPLATE void BASESTRING::trim() {
#endif
TEMPLATE void BASESTRING::assignAppend(value_type c) {
if (c == 0)
return;
ensureCapacity(_size + 1, true);
_str[_size++] = c;