artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b90c090
)
don't munge argv strings -- copy them first. avoids 'w' showing:
author
deraadt
<deraadt@openbsd.org>
Fri, 3 May 1996 15:01:44 +0000
(15:01 +0000)
committer
deraadt
<deraadt@openbsd.org>
Fri, 3 May 1996 15:01:44 +0000
(15:01 +0000)
deraadt p8 zeus.theos.com 8:26AM 3 dd if of bs
bin/dd/args.c
patch
|
blob
|
history
diff --git
a/bin/dd/args.c
b/bin/dd/args.c
index
7c81764
..
97ed5bd
100644
(file)
--- 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';