diff options
author | Anil Madhavapeddy <avsm@cvs.openbsd.org> | 2003-04-06 13:29:42 +0000 |
---|---|---|
committer | Anil Madhavapeddy <avsm@cvs.openbsd.org> | 2003-04-06 13:29:42 +0000 |
commit | 44f7ce86801ec41f302d30dceda2a7be3ed17c26 (patch) | |
tree | 03a75514029b76de6ef6865776b2f99484d74ac3 /sbin/restore | |
parent | 1eac196ab8482bb65ce427f4ac18e45ededa1c0a (diff) |
strcat->strlcat, ho@ ok
Diffstat (limited to 'sbin/restore')
-rw-r--r-- | sbin/restore/tape.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/restore/tape.c b/sbin/restore/tape.c index d0cb7ec5374..4ffcba56bfe 100644 --- a/sbin/restore/tape.c +++ b/sbin/restore/tape.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tape.c,v 1.22 2003/03/13 05:00:44 deraadt Exp $ */ +/* $OpenBSD: tape.c,v 1.23 2003/04/06 13:29:41 avsm Exp $ */ /* $NetBSD: tape.c,v 1.26 1997/04/15 07:12:25 lukem Exp $ */ /* @@ -743,7 +743,7 @@ xtrlnkfile(buf, size) if (pathlen > MAXPATHLEN) errx(1, "symbolic link name: %s->%s%s; too long %d", curfile.name, lnkbuf, buf, pathlen); - (void)strcat(lnkbuf, buf); + (void)strlcat(lnkbuf, buf, sizeof(lnkbuf)); } /* |