diff options
author | hin <> | 2003-04-04 22:47:43 +0000 |
---|---|---|
committer | hin <> | 2003-04-04 22:47:43 +0000 |
commit | 4d80372692b946021b82c271d54cfe050c4d2fa1 (patch) | |
tree | 19c4c4b8e15416d474bb909106340c41132fa119 | |
parent | a1cf475bdecae65413bdbda454b0572fb9000ecb (diff) | |
download | openbsd-4d80372692b946021b82c271d54cfe050c4d2fa1.tar.gz openbsd-4d80372692b946021b82c271d54cfe050c4d2fa1.tar.bz2 openbsd-4d80372692b946021b82c271d54cfe050c4d2fa1.zip |
strcat -> strlcat
ok deraadt@ tedu@ tdeval@
-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. */ |