diff options
author | 2003-04-06 13:29:41 +0000 | |
---|---|---|
committer | 2003-04-06 13:29:41 +0000 | |
commit | b3813d3f25bc055fceddd75652a338bb019232cd (patch) | |
tree | 311c73e59311c2b4dbf2502775ce6025ca070bb4 | |
parent | sprintf->snprintf. deraadt@ suggestions and ok (diff) | |
download | wireguard-openbsd-b3813d3f25bc055fceddd75652a338bb019232cd.tar.xz wireguard-openbsd-b3813d3f25bc055fceddd75652a338bb019232cd.zip |
strcat->strlcat, ho@ ok
-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)); } /* |