summaryrefslogtreecommitdiff
path: root/usr/src/cmd/csh
diff options
context:
space:
mode:
authornakanon <none@none>2005-10-25 15:32:19 -0700
committernakanon <none@none>2005-10-25 15:32:19 -0700
commit3b09452cccc4480c3bd52a79ee3920ae85e0bba9 (patch)
treeebebbe303a9412817ae29ed3b945de7be7e27be1 /usr/src/cmd/csh
parent43369e138469651f508b1edd3512f007d1545665 (diff)
downloadillumos-joyent-3b09452cccc4480c3bd52a79ee3920ae85e0bba9.tar.gz
6336149 *csh* core dump if argv is unset or reset
Diffstat (limited to 'usr/src/cmd/csh')
-rw-r--r--usr/src/cmd/csh/sh.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/src/cmd/csh/sh.c b/usr/src/cmd/csh/sh.c
index 300e4e2d2e..7423f34482 100644
--- a/usr/src/cmd/csh/sh.c
+++ b/usr/src/cmd/csh/sh.c
@@ -408,7 +408,7 @@ main(int c, char **av)
/*
* Save the remaining arguments in argv.
*/
- setq(S_argv /* "argv" */, v, &shvhed);
+ setq(S_argv /* "argv" */, copyblk(v), &shvhed);
/*
* Set up the prompt.