diff options
author | Hauke Mehrtens <hauke@hauke-m.de> | 2013-11-11 21:59:07 +0000 |
---|---|---|
committer | Hauke Mehrtens <hauke@hauke-m.de> | 2013-11-11 21:59:07 +0000 |
commit | 493f82e8eee3ffb2b2a9df2e5894ad3234bcf9a4 (patch) | |
tree | 6428fd7770ce6e5de5dcf436bba5e37f1919a617 /package/kernel/broadcom-wl | |
parent | 1439dc3b9b548218132a49c8ef370db8d1b83074 (diff) | |
download | mtk-20170518-493f82e8eee3ffb2b2a9df2e5894ad3234bcf9a4.zip mtk-20170518-493f82e8eee3ffb2b2a9df2e5894ad3234bcf9a4.tar.gz mtk-20170518-493f82e8eee3ffb2b2a9df2e5894ad3234bcf9a4.tar.bz2 |
broadcom-wl: fix whitespace handling
Signed-off-by: Nathan Hintz <nlhintz@hotmail.com>
SVN-Revision: 38751
Diffstat (limited to 'package/kernel/broadcom-wl')
-rw-r--r-- | package/kernel/broadcom-wl/src/wlc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/package/kernel/broadcom-wl/src/wlc.c b/package/kernel/broadcom-wl/src/wlc.c index 7b21ea0..9f4abc0 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)); |