From 5e4f447825c090406a3f51e748bac308bea96591 Mon Sep 17 00:00:00 2001 From: aldot Date: Tue, 10 Apr 2007 09:38:35 +0000 Subject: - use skip_non_whitespace() where appropriate git-svn-id: svn://busybox.net/trunk/busybox@18379 69ca8d6d-28ef-0310-b511-8ec308f3f277 --- 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-55-g6feb