summaryrefslogtreecommitdiffstats
path: root/openbsc/src/libctrl/control_cmd.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2014-08-08 19:41:28 +0200
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2014-08-08 21:17:35 +0200
commit350de9fe80239cf4b93cdba1c051a2078843d5e4 (patch)
tree78761301bd1d8ad3a0d8636b5c565511f123b669 /openbsc/src/libctrl/control_cmd.c
parentda4b492f56c3e117180e38ffdde4007d83fea950 (diff)
ctrl: Allow the value to contain spaces. No need to split the string
Diffstat (limited to 'openbsc/src/libctrl/control_cmd.c')
-rw-r--r--openbsc/src/libctrl/control_cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsc/src/libctrl/control_cmd.c b/openbsc/src/libctrl/control_cmd.c
index db88668f8..44cfa4851 100644
--- a/openbsc/src/libctrl/control_cmd.c
+++ b/openbsc/src/libctrl/control_cmd.c
@@ -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";