From: Jo-Philipp Wich Date: Wed, 9 Oct 2013 12:35:12 +0000 (+0000) Subject: rpcd: list actual names in luci2.network.switch_list X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fluci2%2Fui.git;a=commitdiff_plain;h=dc8ecce100784dab2e89601be0dba22e2516094f rpcd: list actual names in luci2.network.switch_list --- diff --git a/luci2/src/rpcd/luci2.c b/luci2/src/rpcd/luci2.c index b317fc4..893e882 100644 --- a/luci2/src/rpcd/luci2.c +++ b/luci2/src/rpcd/luci2.c @@ -1773,8 +1773,8 @@ swconfig_parse_list(struct blob_buf *blob, char *buf, int len, void *priv) s->array = blobmsg_open_array(blob, "switches"); } - strtok(buf, ":"); - p = strtok(NULL, " -"); + strtok(buf, "-"); + p = strtok(NULL, " \n"); if (p) blobmsg_add_string(blob, NULL, p);