diff options
-rw-r--r-- | src/kernel/qtranslator.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/kernel/qtranslator.cpp b/src/kernel/qtranslator.cpp index 5f3eec77e..884c81977 100644 --- a/src/kernel/qtranslator.cpp +++ b/src/kernel/qtranslator.cpp @@ -1015,7 +1015,7 @@ TQTranslatorMessage TQTranslator::findMessage( const char* context, char con[256]; for ( ;; ) { t >> len; - if ( len == 0 ) + if ( len == 0 || t.atEnd() ) return TQTranslatorMessage(); t.readRawBytes( con, len ); con[len] = '\0'; |