broadcom-wl: fix whitespace handling
Signed-off-by: Nathan Hintz <nlhintz@hotmail.com> SVN-Revision: 38751
This commit is contained in:
parent
1439dc3b9b
commit
493f82e8ee
1 changed files with 3 additions and 3 deletions
|
@ -1104,14 +1104,14 @@ int main(int argc, char **argv)
|
||||||
if (!*s)
|
if (!*s)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if ((s2 = strchr(buf, ' ')) != NULL)
|
if ((s2 = strchr(s, ' ')) != NULL)
|
||||||
*(s2++) = 0;
|
*(s2++) = 0;
|
||||||
|
|
||||||
while (s2 && isspace(*s2))
|
while (s2 && isspace(*s2))
|
||||||
s2++;
|
s2++;
|
||||||
|
|
||||||
if ((call = find_cmd(buf)) == NULL) {
|
if ((call = find_cmd(s)) == NULL) {
|
||||||
fprintf(stderr, "Invalid command: %s\n", buf);
|
fprintf(stderr, "Invalid command: %s\n", s);
|
||||||
ret = -1;
|
ret = -1;
|
||||||
} else
|
} else
|
||||||
ret = do_command(call, ((call->param & NOARG) ? NULL : s2));
|
ret = do_command(call, ((call->param & NOARG) ? NULL : s2));
|
||||||
|
|
Loading…
Reference in a new issue