From: Jim Meyering Date: Sun, 11 Apr 1999 01:32:28 +0000 (+0000) Subject: (scanargs): Fix bug introduced with last change: now that X-Git-Tag: FILEUTILS-4_0f~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=03e24361ee6488c8996aa921ffd754325e446549;p=thirdparty%2Fcoreutils.git (scanargs): Fix bug introduced with last change: now that the loop is gone, manually decrement argc and increment argv. --- diff --git a/src/dd.c b/src/dd.c index 5d449f6fa1..e4d3cc9e4e 100644 --- a/src/dd.c +++ b/src/dd.c @@ -584,6 +584,9 @@ scanargs (int argc, char **argv) { int i; + --argc; + ++argv; + for (i = optind; i < argc; i++) { char *name, *val;