Make args_init_from_string() split on more whitespace characters

This commit is contained in:
Joel Rosdahl 2010-08-14 15:40:06 +02:00
parent aaf5cbd18a
commit e0f5d3aa58

2
args.c
View File

@ -46,7 +46,7 @@ args_init_from_string(const char *command)
char *word;
args = args_init(0, NULL);
while ((word = strtok(q, " "))) {
while ((word = strtok(q, " \t\r\n"))) {
args_add(args, word);
q = NULL;
}