From de17ece1dbbb3a5399e82fb5b820bb44997f8ca4 Mon Sep 17 00:00:00 2001 From: Bernhard Reutner-Fischer Date: Tue, 10 Apr 2007 09:38:35 +0000 Subject: - use skip_non_whitespace() where appropriate --- shell/bbsh.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'shell') 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) // Grab next word. (Add dequote and envvar logic here) end = start; - while (*end && !isspace(*end)) end++; + end = skip_non_whitespace(end); (*cmd)->argv[(*cmd)->argc++] = xstrndup(start, end-start); // Allocate more space if there's no room for NULL terminator. -- cgit v1.2.3