diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2003-03-13 09:03:08 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2003-03-13 09:03:08 +0000 |
commit | 6153e3b8d9aedd43b1300c4d60217039c9485e02 (patch) | |
tree | d34661a356fadb05716dbac2a14b55809a52a626 /bin/ksh/var.c | |
parent | 4ee7bd2c5947a89ffbdba75b2ec72ae7d4c84492 (diff) |
a few strcpy -> strlcpy; a couple people have mailed in a variety of
patches, and i already had this sitting on my laptop at that time.. i used
that as a chance to note that we had all done the same work, more or less
Diffstat (limited to 'bin/ksh/var.c')
-rw-r--r-- | bin/ksh/var.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/ksh/var.c b/bin/ksh/var.c index 668b6bdcf9c..98faa2cacc4 100644 --- a/bin/ksh/var.c +++ b/bin/ksh/var.c @@ -1,4 +1,4 @@ -/* $OpenBSD: var.c,v 1.12 2003/02/28 09:45:09 jmc Exp $ */ +/* $OpenBSD: var.c,v 1.13 2003/03/13 09:03:07 deraadt Exp $ */ #include "sh.h" #include "ksh_time.h" @@ -1152,7 +1152,8 @@ arraysearch(vp, val) else new = curr; } else - new = (struct tbl *)alloc(sizeof(struct tbl)+strlen(vp->name)+1, vp->areap); + new = (struct tbl *)alloc(sizeof(struct tbl)+strlen(vp->name)+1, + vp->areap); strcpy(new->name, vp->name); new->flag = vp->flag & ~(ALLOC|DEFINED|ISSET|SPECIAL); new->type = vp->type; |