ctrl: Allow the value to contain spaces. No need to split the string
This commit is contained in:
parent
da4b492f56
commit
350de9fe80
|
@ -343,7 +343,7 @@ struct ctrl_cmd *ctrl_cmd_parse(void *ctx, struct msgb *msg)
|
|||
break;
|
||||
case CTRL_TYPE_SET:
|
||||
var = strtok_r(NULL, " ", &saveptr);
|
||||
val = strtok_r(NULL, " ", &saveptr);
|
||||
val = strtok_r(NULL, "\n", &saveptr);
|
||||
if (!var || !val) {
|
||||
cmd->type = CTRL_TYPE_ERROR;
|
||||
cmd->reply = "SET incomplete";
|
||||
|
|
Loading…
Reference in New Issue