diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2003-04-04 23:12:03 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2003-04-04 23:12:03 +0000 |
commit | 89818c6c69a0745284f6b5368cadd229bfe9c8cb (patch) | |
tree | 08fc92eea8682b34602753108636507bc3c3b03e /bin/ksh/main.c | |
parent | af21411c6974d6f0daa1fc6bb7e44821b1329bdf (diff) |
two fixes; help from tedu & tdeval
Diffstat (limited to 'bin/ksh/main.c')
-rw-r--r-- | bin/ksh/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/ksh/main.c b/bin/ksh/main.c index d6af9466575..2db79dc4cbb 100644 --- a/bin/ksh/main.c +++ b/bin/ksh/main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.23 2003/03/10 03:48:16 david Exp $ */ +/* $OpenBSD: main.c,v 1.24 2003/04/04 23:12:02 deraadt Exp $ */ /* * startup, main loop, environments and error handling @@ -829,7 +829,7 @@ remove_temps(tp) APERM); memset(t, 0, sizeof(struct temp)); t->name = (char *) &t[1]; - strcpy(t->name, tp->name); + strlcpy(t->name, tp->name, strlen(tp->name) + 1); t->next = delayed_remove; delayed_remove = t; } |