mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-18 22:26:30 +01:00
initialize buffer that common code will pass to strcat.
This commit is contained in:
parent
d66208a1f2
commit
ec0702d584
2 changed files with 2 additions and 2 deletions
|
@ -934,7 +934,7 @@ Java_org_eehouse_android_xw4_jni_XwJNI_model_1getPlayersLastScore
|
|||
jstring result = NULL;
|
||||
XWJNI_START();
|
||||
XP_ASSERT( !!state->game.model );
|
||||
XP_UCHAR buf[64];
|
||||
XP_UCHAR buf[64] = {0};
|
||||
XP_U16 buflen = sizeof(buf);
|
||||
if ( !model_getPlayersLastScore( state->game.model, player, buf,
|
||||
&buflen ) ) {
|
||||
|
|
|
@ -1761,7 +1761,7 @@ gtk_util_playerScoreHeld( XW_UtilCtxt* uc, XP_U16 player )
|
|||
|
||||
GtkAppGlobals* globals = (GtkAppGlobals*)uc->closure;
|
||||
|
||||
XP_UCHAR scoreExpl[48];
|
||||
XP_UCHAR scoreExpl[48] = {0};
|
||||
XP_U16 explLen = sizeof(scoreExpl);
|
||||
|
||||
if ( model_getPlayersLastScore( globals->cGlobals.game.model,
|
||||
|
|
Loading…
Reference in a new issue