Make sure that we're not setting the string size to -1.

CCMAIL:ismail donmez <kde@myrealbox.com>


git-svn-id: svn://anonsvn.kde.org/home/kde/trunk/kdesupport/taglib@336760 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
This commit is contained in:
Scott Wheeler 2004-08-07 20:23:10 +00:00
parent 47ddbca63b
commit 740f868333

View File

@ -677,7 +677,7 @@ void String::prepare(Type t)
debug("String::prepare() - Unicode conversion error.");
int newSize = target - targetBuffer - 1;
int newSize = target != targetBuffer ? target - targetBuffer - 1 : 0;
d->data.resize(newSize);
for(int i = 0; i < newSize; i++)