diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2007-04-10 09:38:35 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2007-04-10 09:38:35 +0000 |
commit | de17ece1dbbb3a5399e82fb5b820bb44997f8ca4 (patch) | |
tree | bf440665c9a99743cc22195351b0eec490ab8204 /shell | |
parent | 8b1fab2879d57b044342ee3fece0825d4d3a509a (diff) | |
download | busybox-w32-de17ece1dbbb3a5399e82fb5b820bb44997f8ca4.tar.gz busybox-w32-de17ece1dbbb3a5399e82fb5b820bb44997f8ca4.tar.bz2 busybox-w32-de17ece1dbbb3a5399e82fb5b820bb44997f8ca4.zip |
- use skip_non_whitespace() where appropriate
Diffstat (limited to 'shell')
-rw-r--r-- | shell/bbsh.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/bbsh.c b/shell/bbsh.c index 4f38213c9..06fd0131e 100644 --- a/shell/bbsh.c +++ b/shell/bbsh.c | |||
@@ -90,7 +90,7 @@ static char *parse_word(char *start, struct command **cmd) | |||
90 | 90 | ||
91 | // Grab next word. (Add dequote and envvar logic here) | 91 | // Grab next word. (Add dequote and envvar logic here) |
92 | end = start; | 92 | end = start; |
93 | while (*end && !isspace(*end)) end++; | 93 | end = skip_non_whitespace(end); |
94 | (*cmd)->argv[(*cmd)->argc++] = xstrndup(start, end-start); | 94 | (*cmd)->argv[(*cmd)->argc++] = xstrndup(start, end-start); |
95 | 95 | ||
96 | // Allocate more space if there's no room for NULL terminator. | 96 | // Allocate more space if there's no room for NULL terminator. |