From 44f7ce86801ec41f302d30dceda2a7be3ed17c26 Mon Sep 17 00:00:00 2001 From: Anil Madhavapeddy Date: Sun, 6 Apr 2003 13:29:42 +0000 Subject: strcat->strlcat, ho@ ok --- sbin/restore/tape.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sbin/restore') 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)); } /* -- cgit v1.2.3