mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-04 17:29:11 +00:00
replace ensureCapacity(_len-1) by ensureCapacity(_len) (fixes bug #1617410)
svn-id: r24865
This commit is contained in:
parent
d39da605a2
commit
9543231685
@ -223,7 +223,7 @@ void String::deleteChar(uint32 p) {
|
||||
// Call ensureCapacity to make sure we actually *own* the storage
|
||||
// to which _str points to -- we wouldn't want to modify a storage
|
||||
// which other string objects are sharing, after all.
|
||||
ensureCapacity(_len - 1, true);
|
||||
ensureCapacity(_len, true);
|
||||
while (p++ < _len)
|
||||
_str[p-1] = _str[p];
|
||||
_len--;
|
||||
|
Loading…
x
Reference in New Issue
Block a user