mirror of
https://github.com/hak5/wifipineapple-openwrt.git
synced 2025-10-29 16:57:19 +00:00
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
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user