]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Make args_init_from_string() split on more whitespace characters
authorJoel Rosdahl <joel@rosdahl.net>
Sat, 14 Aug 2010 13:40:06 +0000 (15:40 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Sat, 14 Aug 2010 19:14:08 +0000 (21:14 +0200)
args.c

diff --git a/args.c b/args.c
index af9d75f330c7b7265e0b8fd38be4fbb6366ba14f..23819046af630f847dc0caaeab44a6e642425611 100644 (file)
--- 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;
        }