x11-libs/qt: delete old extraversions, rebase to current portage ebuilds.
[gentoo-soor-overlay.git] / x11-libs / qt / files / qt-4.3.1-unicode-off-by-one.patch
blobdccdd599b537c27457a64260259c50ea7f155b01
1 --- src/corelib/codecs/qutfcodec.cpp
2 +++ src/corelib/codecs/qutfcodec.cpp
3 @@ -140,7 +140,7 @@ void QUtf8Codec::convertToUnicode(QString *target, const char *chars, int len, C
5 int originalLength = target->length();
6 QString &result = *target;
7 - result.resize(originalLength + len); // worst case
8 + result.resize(originalLength + len + 1); // worst case
9 QChar *qch = result.data() + originalLength;
10 uchar ch;
11 int invalid = 0;