mirror of
https://github.com/taglib/taglib.git
synced 2025-06-04 01:28:21 -04:00
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:
parent
47ddbca63b
commit
740f868333
@ -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++)
|
||||
|
Loading…
x
Reference in New Issue
Block a user