From 4c9e9ab1657016a4fb85e4c1a6cac110a42c1e9b Mon Sep 17 00:00:00 2001 From: Ben Lindstrom Date: Sun, 18 May 2003 01:22:43 +0000 Subject: - (bal) strcat -> strlcat on openbsd-compat/realpath.c (rev 1.8 OpenBSD) --- ChangeLog | 5 ++++- openbsd-compat/realpath.c | 6 +++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 2bcec0445..8253cc873 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,6 @@ +20030517 + - (bal) strcat -> strlcat on openbsd-compat/realpath.c (rev 1.8 OpenBSD) + 20030516 - (djm) OpenBSD CVS Sync - djm@cvs.openbsd.org 2003/05/15 13:52:10 @@ -1549,4 +1552,4 @@ save auth method before monitor_reset_key_state(); bugzilla bug #284; ok provos@ -$Id: ChangeLog,v 1.2730 2003/05/16 08:21:01 djm Exp $ +$Id: ChangeLog,v 1.2731 2003/05/18 01:22:43 mouring Exp $ diff --git a/openbsd-compat/realpath.c b/openbsd-compat/realpath.c index b9035ca22..09b7b73bf 100644 --- a/openbsd-compat/realpath.c +++ b/openbsd-compat/realpath.c @@ -32,7 +32,7 @@ #if !defined(HAVE_REALPATH) || defined(BROKEN_REALPATH) #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 @@ -148,8 +148,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