projects
/
taglib
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
47ddbca
)
Make sure that we're not setting the string size to -1.
author
Scott Wheeler
<wheeler@kde.org>
Sat, 7 Aug 2004 20:23:10 +0000
(20:23 +0000)
committer
Scott Wheeler
<wheeler@kde.org>
Sat, 7 Aug 2004 20:23:10 +0000
(20:23 +0000)
CCMAIL:ismail donmez <kde@myrealbox.com>
git-svn-id: svn://anonsvn.kde.org/home/kde/trunk/kdesupport/taglib@336760
283d02a7
-25f6-0310-bc7c-
ecb5cbfe19da
toolkit/tstring.cpp
patch
|
blob
|
history
diff --git
a/toolkit/tstring.cpp
b/toolkit/tstring.cpp
index fe0588d3e8addd1c999c0b029704caa2d4e3c3cb..c6b89218ea79652d177a02df7ab877ba3837176e 100644
(file)
--- a/
toolkit/tstring.cpp
+++ b/
toolkit/tstring.cpp
@@
-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++)