diff options
Diffstat (limited to 'x11-libs/qt/files/qt-4.3.1-unicode-off-by-one.patch')
-rw-r--r-- | x11-libs/qt/files/qt-4.3.1-unicode-off-by-one.patch | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/x11-libs/qt/files/qt-4.3.1-unicode-off-by-one.patch b/x11-libs/qt/files/qt-4.3.1-unicode-off-by-one.patch new file mode 100644 index 000000000000..dccdd599b537 --- /dev/null +++ b/x11-libs/qt/files/qt-4.3.1-unicode-off-by-one.patch @@ -0,0 +1,12 @@ +--- src/corelib/codecs/qutfcodec.cpp ++++ src/corelib/codecs/qutfcodec.cpp +@@ -140,7 +140,7 @@ void QUtf8Codec::convertToUnicode(QString *target, const char *chars, int len, C + + int originalLength = target->length(); + QString &result = *target; +- result.resize(originalLength + len); // worst case ++ result.resize(originalLength + len + 1); // worst case + QChar *qch = result.data() + originalLength; + uchar ch; + int invalid = 0; + |