summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1999-04-11 01:32:28 +0000
committerJim Meyering <jim@meyering.net>1999-04-11 01:32:28 +0000
commit03e24361ee6488c8996aa921ffd754325e446549 (patch)
tree4883079e919ab945b4f03b5239d28895e776477e
parent24c8bc71079a02bd5caefbe453046da4658aba49 (diff)
downloadcoreutils-03e24361ee6488c8996aa921ffd754325e446549.tar.xz
(scanargs): Fix bug introduced with last change: now that
the loop is gone, manually decrement argc and increment argv.
-rw-r--r--src/dd.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/dd.c b/src/dd.c
index 5d449f6fa..e4d3cc9e4 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;