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