ctrl: Allow the value to contain spaces. No need to split the string

This commit is contained in:
Holger Hans Peter Freyther 2014-08-08 19:41:28 +02:00
parent da4b492f56
commit 350de9fe80
1 changed files with 1 additions and 1 deletions

View File

@ -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";