summaryrefslogtreecommitdiffstats
path: root/src/kernel/qtranslator.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/qtranslator.cpp')
-rw-r--r--src/kernel/qtranslator.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/kernel/qtranslator.cpp b/src/kernel/qtranslator.cpp
index ca160f9..c799e6d 100644
--- a/src/kernel/qtranslator.cpp
+++ b/src/kernel/qtranslator.cpp
@@ -1015,7 +1015,7 @@ QTranslatorMessage QTranslator::findMessage( const char* context,
char con[256];
for ( ;; ) {
t >> len;
- if ( len == 0 )
+ if ( len == 0 || t.atEnd() )
return QTranslatorMessage();
t.readRawBytes( con, len );
con[len] = '\0';