diff options
author | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2014-08-08 19:41:28 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2014-08-21 15:34:17 +0200 |
commit | 5ad742d56e9f0d7d3e442ddde17bba94d6b1e6c4 (patch) | |
tree | 6f0a2a97d192de38972dedf139f9c1591f9c72b6 | |
parent | 0e7b67c3d971dceb662fbd161a34501c9929f874 (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 db88668f..44cfa485 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"; |