initialize buffer that common code will pass to strcat.

This commit is contained in:
Eric House 2012-08-10 21:31:01 -07:00
parent d66208a1f2
commit ec0702d584
2 changed files with 2 additions and 2 deletions

View file

@ -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 ) ) {

View file

@ -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,