aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/gen/confstr.c
diff options
context:
space:
mode:
authorJacques Vidrine <nectar@FreeBSD.org>2003-05-01 19:03:14 +0000
committerJacques Vidrine <nectar@FreeBSD.org>2003-05-01 19:03:14 +0000
commitd05090827f0e5b95cc7d2bcdde8b3b4e0f986241 (patch)
tree736595316c161b3d1ae559f331feaa6ba12b500e /lib/libc/gen/confstr.c
parent9501b60383bd4123b406e604b1fbe8108778c634 (diff)
downloadsrc-d05090827f0e5b95cc7d2bcdde8b3b4e0f986241.tar.gz
src-d05090827f0e5b95cc7d2bcdde8b3b4e0f986241.zip
Back out the `hiding' of strlcpy and strlcat. Several people
vocally objected to this safety belt.
Notes
Notes: svn path=/head/; revision=114443
Diffstat (limited to 'lib/libc/gen/confstr.c')
-rw-r--r--lib/libc/gen/confstr.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/libc/gen/confstr.c b/lib/libc/gen/confstr.c
index 2885afd3bd38..966c3fe2ae19 100644
--- a/lib/libc/gen/confstr.c
+++ b/lib/libc/gen/confstr.c
@@ -37,14 +37,13 @@ static char sccsid[] = "@(#)confstr.c 8.1 (Berkeley) 6/4/93";
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
-#include "namespace.h"
#include <sys/param.h>
+
#include <errno.h>
#include <limits.h>
#include <paths.h>
#include <string.h>
#include <unistd.h>
-#include "un-namespace.h"
size_t
@@ -115,7 +114,7 @@ confstr(int name, char *buf, size_t len)
docopy:
if (len != 0 && buf != NULL)
- _strlcpy(buf, p, len);
+ strlcpy(buf, p, len);
return (strlen(p) + 1);
default: