mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-27 07:58:49 +01:00
java uses '/' to delimit device id, so we'll make that standard.
This commit is contained in:
parent
c36679fe13
commit
c6bd2125a4
1 changed files with 2 additions and 2 deletions
|
@ -180,14 +180,14 @@ cmdToStr( XWRELAY_Cmd cmd )
|
|||
static bool
|
||||
parseRelayID( const char* const in, char* buf, HostID* hid )
|
||||
{
|
||||
const char* hidp = strrchr( (char*)in, ':' );
|
||||
const char* hidp = strrchr( (char*)in, '/' );
|
||||
bool ok = NULL != hidp;
|
||||
if ( ok ) {
|
||||
int connNameLen = hidp - in;
|
||||
strncpy( buf, in, connNameLen );
|
||||
buf[connNameLen] = '\0';
|
||||
*hid = atoi( hidp+1 );
|
||||
logf( XW_LOGINFO, "%s=>%s : %d", __func__, buf, *hid );
|
||||
logf( XW_LOGINFO, "%s(%s)=>%s : %d", __func__, in, buf, *hid );
|
||||
}
|
||||
return ok;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue