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++;