Made command parsing in CLI not treat _ as separator.
This commit is contained in:
parent
dd18d2c4ba
commit
be4ad9d982
|
@ -3161,7 +3161,7 @@ static void cliMap(char *cmdline)
|
||||||
static char *checkCommand(char *cmdLine, const char *command)
|
static char *checkCommand(char *cmdLine, const char *command)
|
||||||
{
|
{
|
||||||
if(!strncasecmp(cmdLine, command, strlen(command)) // command names match
|
if(!strncasecmp(cmdLine, command, strlen(command)) // command names match
|
||||||
&& !isalnum((unsigned)cmdLine[strlen(command)])) { // next characted in bufffer is not alphanumeric (command is correctly terminated)
|
&& (isspace((unsigned)cmdLine[strlen(command)]) || cmdLine[strlen(command)] == 0)) {
|
||||||
return cmdLine + strlen(command) + 1;
|
return cmdLine + strlen(command) + 1;
|
||||||
} else {
|
} else {
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in New Issue