aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/nls
diff options
context:
space:
mode:
authorJacques Vidrine <nectar@FreeBSD.org>2003-04-29 21:13:50 +0000
committerJacques Vidrine <nectar@FreeBSD.org>2003-04-29 21:13:50 +0000
commit5723e501abb675701352eb3e9fd58bb3cc2c649d (patch)
treee9749f1ff2693755bce73e10528fc8cc6a6563ea /lib/libc/nls
parenta8b5a9cd120e319cacf1c68e4a257e6955e0d5d6 (diff)
downloadsrc-5723e501abb675701352eb3e9fd58bb3cc2c649d.tar.gz
src-5723e501abb675701352eb3e9fd58bb3cc2c649d.zip
`Hide' strlcpy and strlcat (using the namespace.h / __weak_reference
technique) so that we don't wind up calling into an application's version if the application defines them. Inspired by: qpopper's interfering and buggy version of strlcpy
Notes
Notes: svn path=/head/; revision=114256
Diffstat (limited to 'lib/libc/nls')
-rw-r--r--lib/libc/nls/msgcat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/nls/msgcat.c b/lib/libc/nls/msgcat.c
index 4d446184eafd..55ed59ba64f9 100644
--- a/lib/libc/nls/msgcat.c
+++ b/lib/libc/nls/msgcat.c
@@ -160,7 +160,7 @@ catopen(name, type)
put_tmpptr:
spcleft = sizeof(path) -
(pathP - path) - 1;
- if (strlcpy(pathP, tmpptr, spcleft) >=
+ if (_strlcpy(pathP, tmpptr, spcleft) >=
spcleft) {
too_long:
free(plang);