mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-22 01:57:16 +00:00
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:
parent
b58abb64d7
commit
54b0b4ac4c
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user