diff options
-rw-r--r-- | bin/dd/args.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/dd/args.c b/bin/dd/args.c index 7c817649926..97ed5bd60a4 100644 --- a/bin/dd/args.c +++ b/bin/dd/args.c @@ -105,6 +105,7 @@ jcl(argv) in.dbsz = out.dbsz = 512; while (oper = *++argv) { + oper = strdup(oper); if ((arg = strchr(oper, '=')) == NULL) errx(1, "unknown operand %s", oper); *arg++ = '\0'; |