diff options
author | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2014-08-08 19:41:28 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2014-08-08 21:17:35 +0200 |
commit | 350de9fe80239cf4b93cdba1c051a2078843d5e4 (patch) | |
tree | 78761301bd1d8ad3a0d8636b5c565511f123b669 | |
parent | da4b492f56c3e117180e38ffdde4007d83fea950 (diff) |
ctrl: Allow the value to contain spaces. No need to split the string
-rw-r--r-- | openbsc/src/libctrl/control_cmd.c | 2 |
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"; |