diff options
author | François Andriot <francois.andriot@free.fr> | 2014-09-16 03:31:12 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2014-09-16 03:41:25 +0200 |
commit | a944830520dff4031b540cc8fd95906bc5164009 (patch) | |
tree | 91e73e76eba331c91342a7d69e9e50e860eca132 | |
parent | fdc4699bcbf4b4900a8ad75974420193218fd2c2 (diff) | |
download | qt3-a944830520dff4031b540cc8fd95906bc5164009.tar.gz qt3-a944830520dff4031b540cc8fd95906bc5164009.zip |
Fix crash in TQTranslator
-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 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'; |