From dc8ecce100784dab2e89601be0dba22e2516094f Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Wed, 9 Oct 2013 12:35:12 +0000 Subject: [PATCH] rpcd: list actual names in luci2.network.switch_list --- luci2/src/rpcd/luci2.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.11.0