diff options
author | Jacques Vidrine <nectar@FreeBSD.org> | 2003-05-01 19:03:14 +0000 |
---|---|---|
committer | Jacques Vidrine <nectar@FreeBSD.org> | 2003-05-01 19:03:14 +0000 |
commit | d05090827f0e5b95cc7d2bcdde8b3b4e0f986241 (patch) | |
tree | 736595316c161b3d1ae559f331feaa6ba12b500e /lib/libc/gen/confstr.c | |
parent | 9501b60383bd4123b406e604b1fbe8108778c634 (diff) | |
download | src-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.c | 5 |
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: |