From: Joel Rosdahl Date: Sat, 14 Aug 2010 13:40:06 +0000 (+0200) Subject: Make args_init_from_string() split on more whitespace characters X-Git-Tag: v3.1~78 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e0f5d3aa58a43bebb8d0c814f7d502febbc78585;p=thirdparty%2Fccache.git Make args_init_from_string() split on more whitespace characters --- diff --git a/args.c b/args.c index af9d75f33..23819046a 100644 --- a/args.c +++ b/args.c @@ -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; }