mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-24 00:14:06 +00:00
parent
0c7d7ada21
commit
1391a8fa7e
|
@ -382,9 +382,10 @@ bgl_entry Babylon::readEntry( ResourceHandler * resourceHandler )
|
|||
len = qFromBigEndian( *reinterpret_cast< quint32 * >( block.data + pos ) );
|
||||
pos += 4;
|
||||
}
|
||||
else
|
||||
{
|
||||
len = (unsigned char)block.data[pos++];
|
||||
else {
|
||||
if ( pos + 1 > block.length )
|
||||
break;
|
||||
len = (unsigned char)block.data[ pos++ ];
|
||||
}
|
||||
|
||||
if( pos + len > block.length )
|
||||
|
|
Loading…
Reference in a new issue