From: Hauke Mehrtens Date: Mon, 11 Nov 2013 21:59:07 +0000 (+0000) Subject: broadcom-wl: fix whitespace handling X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=493f82e8eee3ffb2b2a9df2e5894ad3234bcf9a4;p=openwrt%2Fstaging%2Fluka.git broadcom-wl: fix whitespace handling Signed-off-by: Nathan Hintz SVN-Revision: 38751 --- diff --git a/package/kernel/broadcom-wl/src/wlc.c b/package/kernel/broadcom-wl/src/wlc.c index 7b21ea0e89..9f4abc04f9 100644 --- a/package/kernel/broadcom-wl/src/wlc.c +++ b/package/kernel/broadcom-wl/src/wlc.c @@ -1104,14 +1104,14 @@ int main(int argc, char **argv) if (!*s) continue; - if ((s2 = strchr(buf, ' ')) != NULL) + if ((s2 = strchr(s, ' ')) != NULL) *(s2++) = 0; while (s2 && isspace(*s2)) s2++; - if ((call = find_cmd(buf)) == NULL) { - fprintf(stderr, "Invalid command: %s\n", buf); + if ((call = find_cmd(s)) == NULL) { + fprintf(stderr, "Invalid command: %s\n", s); ret = -1; } else ret = do_command(call, ((call->param & NOARG) ? NULL : s2));