mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-28 09:58:30 +01:00
read rather than just skipping word count
This commit is contained in:
parent
91c04d3267
commit
ff9e03ef4b
1 changed files with 4 additions and 0 deletions
|
@ -245,6 +245,10 @@ parseDict( AndDictionaryCtxt* ctxt, XP_U8* ptr, XP_U32 dictLength )
|
|||
if ( 0 != (DICT_HEADER_MASK & flags) ) {
|
||||
flags &= ~DICT_HEADER_MASK;
|
||||
XP_U16 headerLen = n_ptr_tohs( &ptr );
|
||||
if ( 4 <= headerLen ) { /* have word count? */
|
||||
ctxt->super.nWords = n_ptr_tohl( &ptr );
|
||||
headerLen -= 4; /* don't skip it */
|
||||
}
|
||||
ptr += headerLen;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue