From 4d80372692b946021b82c271d54cfe050c4d2fa1 Mon Sep 17 00:00:00 2001 From: hin <> Date: Fri, 4 Apr 2003 22:47:43 +0000 Subject: strcat -> strlcat ok deraadt@ tedu@ tdeval@ --- src/lib/libc/stdlib/realpath.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/lib') diff --git a/src/lib/libc/stdlib/realpath.c b/src/lib/libc/stdlib/realpath.c index d01b19e0f2..71063394d1 100644 --- a/src/lib/libc/stdlib/realpath.c +++ b/src/lib/libc/stdlib/realpath.c @@ -35,7 +35,7 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char *rcsid = "$OpenBSD: realpath.c,v 1.7 2002/05/24 21:22:37 deraadt Exp $"; +static char *rcsid = "$OpenBSD: realpath.c,v 1.8 2003/04/04 22:47:43 hin Exp $"; #endif /* LIBC_SCCS and not lint */ #include @@ -144,8 +144,8 @@ loop: goto err1; } if (rootd == 0) - (void)strcat(resolved, "/"); - (void)strcat(resolved, wbuf); + strlcat(resolved, "/", MAXPATHLEN); + strlcat(resolved, wbuf, MAXPATHLEN); } /* Go back to where we came from. */ -- cgit v1.2.3-55-g6feb