- use skip_non_whitespace() where appropriate
This commit is contained in:
1 parent
8b1fab2879
commit
de17ece1db
3 files changed
+3
-7
No files matched your search
+1
-1
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user