diff options
author | Robert Xu <[email protected]> | 2012-07-28 17:22:06 -0400 |
---|---|---|
committer | Robert Xu <[email protected]> | 2012-07-28 17:22:06 -0400 |
commit | 44279fd56aa28d4943b49e516ac791900c561488 (patch) | |
tree | 11289e75f32c5324c5f7469141881720af4f57fe /opensuse/core/tqt3/fix-qtranslator-crash.diff | |
parent | 48e7f603b222a82ae22d94ecbd6cbba914144f86 (diff) | |
download | tde-packaging-44279fd56aa28d4943b49e516ac791900c561488.tar.gz tde-packaging-44279fd56aa28d4943b49e516ac791900c561488.zip |
initial package (failing) of tqt3 for SuSE12.1
Diffstat (limited to 'opensuse/core/tqt3/fix-qtranslator-crash.diff')
-rw-r--r-- | opensuse/core/tqt3/fix-qtranslator-crash.diff | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/opensuse/core/tqt3/fix-qtranslator-crash.diff b/opensuse/core/tqt3/fix-qtranslator-crash.diff new file mode 100644 index 000000000..7db222e9e --- /dev/null +++ b/opensuse/core/tqt3/fix-qtranslator-crash.diff @@ -0,0 +1,11 @@ +--- src/kernel/qtranslator.cpp ++++ src/kernel/qtranslator.cpp +@@ -1015,7 +1015,7 @@ + char con[256]; + for ( ;; ) { + t >> len; +- if ( len == 0 ) ++ if ( len == 0 || t.atEnd()) + return TQTranslatorMessage(); + t.readRawBytes( con, len ); + con[len] = '\0'; |