From 44279fd56aa28d4943b49e516ac791900c561488 Mon Sep 17 00:00:00 2001 From: Robert Xu Date: Sat, 28 Jul 2012 17:22:06 -0400 Subject: initial package (failing) of tqt3 for SuSE12.1 --- opensuse/core/tqt3/fix-qtranslator-crash.diff | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 opensuse/core/tqt3/fix-qtranslator-crash.diff (limited to 'opensuse/core/tqt3/fix-qtranslator-crash.diff') 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'; -- cgit v1.2.1