From c6bd2125a4d77c855843155cfb067a32475f0311 Mon Sep 17 00:00:00 2001 From: Andy2 Date: Mon, 15 Nov 2010 18:27:36 -0800 Subject: [PATCH] java uses '/' to delimit device id, so we'll make that standard. --- xwords4/relay/xwrelay.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xwords4/relay/xwrelay.cpp b/xwords4/relay/xwrelay.cpp index 212cd514a..7f3a05c64 100644 --- a/xwords4/relay/xwrelay.cpp +++ b/xwords4/relay/xwrelay.cpp @@ -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; }