aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@openwrt.org>2013-11-11 21:59:07 +0000
committerHauke Mehrtens <hauke@openwrt.org>2013-11-11 21:59:07 +0000
commit0b42a2d718c2b7524884d80aadcb060d6c9f477e (patch)
treec6f58b6459eb46f90cad43cb8ea655b871f590fd /package
parente0eac9d9760e6c005dedb0fba67b4e82e6c1cf63 (diff)
downloadmaster-187ad058-0b42a2d718c2b7524884d80aadcb060d6c9f477e.tar.gz
master-187ad058-0b42a2d718c2b7524884d80aadcb060d6c9f477e.tar.bz2
master-187ad058-0b42a2d718c2b7524884d80aadcb060d6c9f477e.zip
broadcom-wl: fix whitespace handling
Signed-off-by: Nathan Hintz <nlhintz@hotmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38751 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package')
-rw-r--r--package/kernel/broadcom-wl/src/wlc.c6
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 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));