Fix argv overrun in getconf (bug 27761)

Correct argument counter accounting when processing the -v option with the
argument directly attached.
This commit is contained in:
Andreas Schwab 2021-04-21 14:27:21 +02:00
parent a64afc2252
commit b59c698981
1 changed files with 2 additions and 2 deletions

View File

@ -519,7 +519,7 @@ environment SPEC.\n\n"));
else
{
argv += 1;
argc += 1;
argc -= 1;
}
}
#else
@ -544,7 +544,7 @@ environment SPEC.\n\n"));
{
spec = &argv[1][2];
argv += 1;
argc += 1;
argc -= 1;
}
}
else