fix off-by-one assertion

This commit is contained in:
Eric House 2012-02-22 12:58:33 -08:00 committed by Eric House
parent e145a04111
commit 739b0b6125

View file

@ -1082,7 +1082,7 @@ Java_org_eehouse_android_xw4_jni_XwJNI_game_1summarize
XP_UCHAR buf[128];
XP_U16 len = VSIZE(buf);
if ( comms_getRelayID( comms, buf, &len ) ) {
XP_ASSERT( '\0' == buf[len] );
XP_ASSERT( '\0' == buf[len-1] ); /* failed! */
setString( env, jsummary, "relayID", buf );
}
setString( env, jsummary, "roomName", addr.u.ip_relay.invite );