nsmd: Permit trailing slash in session root.
This commit is contained in:
parent
5fc5ce0cc0
commit
0c5a46422a
|
@ -2101,8 +2101,15 @@ int main(int argc, char *argv[])
|
|||
detach = true;
|
||||
break;
|
||||
case 's':
|
||||
{
|
||||
session_root = optarg;
|
||||
|
||||
/* get rid of trailing slash */
|
||||
char *s = rindex(session_root,'/');
|
||||
if ( s == &session_root[strlen(session_root) - 1] )
|
||||
*s = '\0';
|
||||
break;
|
||||
}
|
||||
case 'p':
|
||||
DMESSAGE( "Using OSC port %s", optarg );
|
||||
osc_port = optarg;
|
||||
|
|
Loading…
Reference in New Issue