summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;