mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-29 10:26:36 +01:00
fix off-by-one assertion
This commit is contained in:
parent
e145a04111
commit
739b0b6125
1 changed files with 1 additions and 1 deletions
|
@ -1082,7 +1082,7 @@ Java_org_eehouse_android_xw4_jni_XwJNI_game_1summarize
|
||||||
XP_UCHAR buf[128];
|
XP_UCHAR buf[128];
|
||||||
XP_U16 len = VSIZE(buf);
|
XP_U16 len = VSIZE(buf);
|
||||||
if ( comms_getRelayID( comms, buf, &len ) ) {
|
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, "relayID", buf );
|
||||||
}
|
}
|
||||||
setString( env, jsummary, "roomName", addr.u.ip_relay.invite );
|
setString( env, jsummary, "roomName", addr.u.ip_relay.invite );
|
||||||
|
|
Loading…
Reference in a new issue