From 1db12815939d758b7329dd5d0e377d1f8f9212a9 Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Wed, 25 Jul 2012 17:49:54 -0500 Subject: [PATCH] argvsplit: fix splitting of arguments There used to be a hack here, which was removed which caused other splitting later. This was a vestige of that hack, which is no longer needed with proper fragments. --- argvsplit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/argvsplit.c b/argvsplit.c index 684c5da..5f857c3 100644 --- a/argvsplit.c +++ b/argvsplit.c @@ -64,7 +64,7 @@ pkg_argv_split(const char *src, int *argc, char ***argv) } else if (isspace(*src_iter)) { - if (*(src_iter + 1) == '-' && (*argv)[argc_count] != NULL) + if ((*argv)[argc_count] != NULL) { argc_count++, dst_iter++;