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 committed by Harald Welte
parent 0e7b67c3d9
commit 5ad742d56e
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";