app-office/lyx: rebase release to 1.5.5
[gentoo-soor-overlay.git] / x11-libs / qt / files / qt-3.3.8-unicode-off-by-one.patch
blob88e146fcc9f684368044dc793eeedfd5835093dc
1 --- src/codecs/qutfcodec.cpp
2 +++ src/codecs/qutfcodec.cpp
3 @@ -165,7 +165,7 @@ public:
4 QString toUnicode(const char* chars, int len)
6 QString result;
7 - result.setLength( len ); // worst case
8 + result.setLength( len + 1 ); // worst case
9 QChar *qch = (QChar *)result.unicode();
10 uchar ch;
11 int error = -1;