mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-30 08:34:16 +01:00
copy null byte along with rest of string
This commit is contained in:
parent
4701ee8c34
commit
acd3bdf24b
1 changed files with 3 additions and 3 deletions
|
@ -93,10 +93,10 @@ loadFromGameInfo( HWND hDlg, CEAppGlobals* globals, GameInfoState* giState )
|
||||||
if ( !!gi->dictName ) {
|
if ( !!gi->dictName ) {
|
||||||
str = bname( gi->dictName );
|
str = bname( gi->dictName );
|
||||||
XP_MEMCPY( giState->newDictName, gi->dictName,
|
XP_MEMCPY( giState->newDictName, gi->dictName,
|
||||||
(XP_U16)XP_STRLEN(gi->dictName) );
|
(XP_U16)XP_STRLEN(gi->dictName)+1 );
|
||||||
|
|
||||||
} else if ( !!(str = ceLocateNthDict( MPPARM(globals->mpool) 0 ) ) ) {
|
} else if ( !!(str = ceLocateNthDict( MPPARM(globals->mpool) 0 ) ) ) {
|
||||||
XP_MEMCPY( giState->newDictName, str, (XP_U16)XP_STRLEN(str) );
|
XP_MEMCPY( giState->newDictName, str, (XP_U16)XP_STRLEN(str)+1 );
|
||||||
XP_FREE( globals->mpool, str );
|
XP_FREE( globals->mpool, str );
|
||||||
str = bname( giState->newDictName );
|
str = bname( giState->newDictName );
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue