12 lines
338 B
Diff
12 lines
338 B
Diff
|
--- src/codecs/qutfcodec.cpp
|
||
|
+++ src/codecs/qutfcodec.cpp
|
||
|
@@ -165,7 +165,7 @@ public:
|
||
|
QString toUnicode(const char* chars, int len)
|
||
|
{
|
||
|
QString result;
|
||
|
- result.setLength( len ); // worst case
|
||
|
+ result.setLength( len + 1 ); // worst case
|
||
|
QChar *qch = (QChar *)result.unicode();
|
||
|
uchar ch;
|
||
|
int error = -1;
|