forked from ariadne/pkgconf
argvsplit: slightly change strategy for splitting arguments
parent
4e95401318
commit
5460704d12
|
@ -64,7 +64,7 @@ int argv_split(const char *src, int *argc, char ***argv)
|
|||
}
|
||||
else if (isspace(*src_iter))
|
||||
{
|
||||
if (*(src_iter - 2) != '-' && (*argv)[argc_count] != NULL)
|
||||
if (*(src_iter + 1) == '-' && (*argv)[argc_count] != NULL)
|
||||
{
|
||||
argc_count++, dst_iter++;
|
||||
|
||||
|
|
Loading…
Reference in New Issue