You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tde-packaging/mageia/dependencies/qt3/qt-x11-free-3.3.5-qtranslat...

12 lines
392 B

--- src/kernel/qtranslator.cpp.sav 2004-08-12 14:32:07.000000000 +0200
+++ src/kernel/qtranslator.cpp 2005-03-15 18:05:29.620141650 +0100
@@ -990,7 +990,7 @@ QTranslatorMessage QTranslator::findMess
char con[256];
for ( ;; ) {
t >> len;
- if ( len == 0 )
+ if ( len == 0 || t.atEnd())
return QTranslatorMessage();
t.readRawBytes( con, len );
con[len] = '\0';