Fix crash in TQTranslator

(cherry picked from commit a944830520)
v3.5.13-sru
François Andriot 10 years ago committed by Slávek Banko
parent a085aad2b5
commit ccee6e3103

@ -1015,7 +1015,7 @@ QTranslatorMessage QTranslator::findMessage( const char* context,
char con[256]; char con[256];
for ( ;; ) { for ( ;; ) {
t >> len; t >> len;
if ( len == 0 ) if ( len == 0 || t.atEnd() )
return QTranslatorMessage(); return QTranslatorMessage();
t.readRawBytes( con, len ); t.readRawBytes( con, len );
con[len] = '\0'; con[len] = '\0';

Loading…
Cancel
Save