summaryrefslogtreecommitdiffstats
path: root/src/kernel
diff options
context:
space:
mode:
authorFrançois Andriot <[email protected]>2014-09-16 03:31:21 +0200
committerSlávek Banko <[email protected]>2014-09-16 03:41:50 +0200
commit3e57876ec3ca176c3d695256497b8bd029cbd88c (patch)
tree4acccc9d2cd380ba335bbcf65a9c24e572fbd628 /src/kernel
parentc86b8f17bf95e89fa6bdb3201d3dcde5e81ea5eb (diff)
downloadtqt3-3e57876ec3ca176c3d695256497b8bd029cbd88c.tar.gz
tqt3-3e57876ec3ca176c3d695256497b8bd029cbd88c.zip
Fix crash in TQTranslator
Diffstat (limited to 'src/kernel')
-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 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';