summaryrefslogtreecommitdiffstats
path: root/tqtinterface/qt4/src/codecs/tqutfcodec.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tqtinterface/qt4/src/codecs/tqutfcodec.cpp')
-rw-r--r--tqtinterface/qt4/src/codecs/tqutfcodec.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tqtinterface/qt4/src/codecs/tqutfcodec.cpp b/tqtinterface/qt4/src/codecs/tqutfcodec.cpp
index 5b263e9..3a80d31 100644
--- a/tqtinterface/qt4/src/codecs/tqutfcodec.cpp
+++ b/tqtinterface/qt4/src/codecs/tqutfcodec.cpp
@@ -303,7 +303,7 @@ public:
TQString toUnicode(const char* chars, int len)
{
TQString result;
- result.setLength( len ); // worst case
+ result.setLength( len + 1 ); // worst case
TQChar *qch = (TQChar *)result.tqunicode();
TQChar ch;
while ( len-- ) {