diff options
Diffstat (limited to 'openbsd-compat/realpath.c')
-rw-r--r-- | openbsd-compat/realpath.c | 6 |
1 files changed, 3 insertions, 3 deletions
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 @@ | |||
32 | #if !defined(HAVE_REALPATH) || defined(BROKEN_REALPATH) | 32 | #if !defined(HAVE_REALPATH) || defined(BROKEN_REALPATH) |
33 | 33 | ||
34 | #if defined(LIBC_SCCS) && !defined(lint) | 34 | #if defined(LIBC_SCCS) && !defined(lint) |
35 | static char *rcsid = "$OpenBSD: realpath.c,v 1.7 2002/05/24 21:22:37 deraadt Exp $"; | 35 | static char *rcsid = "$OpenBSD: realpath.c,v 1.8 2003/04/04 22:47:43 hin Exp $"; |
36 | #endif /* LIBC_SCCS and not lint */ | 36 | #endif /* LIBC_SCCS and not lint */ |
37 | 37 | ||
38 | #include <sys/param.h> | 38 | #include <sys/param.h> |
@@ -148,8 +148,8 @@ loop: | |||
148 | goto err1; | 148 | goto err1; |
149 | } | 149 | } |
150 | if (rootd == 0) | 150 | if (rootd == 0) |
151 | (void)strcat(resolved, "/"); | 151 | strlcat(resolved, "/", MAXPATHLEN); |
152 | (void)strcat(resolved, wbuf); | 152 | strlcat(resolved, wbuf, MAXPATHLEN); |
153 | } | 153 | } |
154 | 154 | ||
155 | /* Go back to where we came from. */ | 155 | /* Go back to where we came from. */ |