mirror of https://gerrit.osmocom.org/libosmocore
ctrl: Allow the value to contain spaces. No need to split the string
This commit is contained in:
parent
0e7b67c3d9
commit
5ad742d56e
|
@ -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