diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-05-03 15:01:45 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-05-03 15:01:45 +0000 |
commit | cced7bef0fcfdb66038ba0d9bf90be0540e42234 (patch) | |
tree | a6f3a902d7c81e28bbc4c0621ea9e9f30cc8f81b /bin/dd | |
parent | d0a17899fc2a10dc55516eb6ac175d943ec50c98 (diff) |
don't munge argv strings -- copy them first. avoids 'w' showing:
deraadt p8 zeus.theos.com 8:26AM 3 dd if of bs
Diffstat (limited to 'bin/dd')
-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'; |