Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix spawn_parse_args() - endless loop - multiple spaces
  • Loading branch information
perexg committed Oct 28, 2015
1 parent d88ed13 commit 33aa6ab
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/spawn.c
Expand Up @@ -370,6 +370,8 @@ spawn_parse_args(char ***argv, int argc, const char *cmd, const char **replace)
*argv = calloc(argc, sizeof(char *));

while (*s && i < argc - 1) {
while (*s == ' ')
s++;
f = s;
while (*s && *s != ' ') {
while (*s && *s != ' ' && *s != '\\')
Expand Down

0 comments on commit 33aa6ab

Please sign in to comment.