projects
/
openwrt
/
staging
/
dedeckeh.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1439dc3
)
broadcom-wl: fix whitespace handling
author
Hauke Mehrtens
<hauke@hauke-m.de>
Mon, 11 Nov 2013 21:59:07 +0000
(21:59 +0000)
committer
Hauke Mehrtens
<hauke@hauke-m.de>
Mon, 11 Nov 2013 21:59:07 +0000
(21:59 +0000)
Signed-off-by: Nathan Hintz <nlhintz@hotmail.com>
SVN-Revision: 38751
package/kernel/broadcom-wl/src/wlc.c
patch
|
blob
|
history
diff --git
a/package/kernel/broadcom-wl/src/wlc.c
b/package/kernel/broadcom-wl/src/wlc.c
index 7b21ea0e893caf6e94038c11059af15bbc42e16f..9f4abc04f9a78350f1bd4a72d0eb831a676d04b2 100644
(file)
--- 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));