[Scummvm-cvs-logs] SF.net SVN: scummvm: [24865] scummvm/trunk/common/str.cpp
wjpalenstijn at users.sourceforge.net
wjpalenstijn at users.sourceforge.net
Sun Dec 17 20:41:48 CET 2006
Revision: 24865
http://scummvm.svn.sourceforge.net/scummvm/?rev=24865&view=rev
Author: wjpalenstijn
Date: 2006-12-17 11:41:41 -0800 (Sun, 17 Dec 2006)
Log Message:
-----------
replace ensureCapacity(_len-1) by ensureCapacity(_len) (fixes bug #1617410)
Modified Paths:
--------------
scummvm/trunk/common/str.cpp
Modified: scummvm/trunk/common/str.cpp
===================================================================
--- scummvm/trunk/common/str.cpp 2006-12-17 19:39:15 UTC (rev 24864)
+++ scummvm/trunk/common/str.cpp 2006-12-17 19:41:41 UTC (rev 24865)
@@ -223,7 +223,7 @@
// 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--;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list