diff options
author | nectar <nectar@FreeBSD.org> | 2003-05-01 19:03:14 +0000 |
---|---|---|
committer | nectar <nectar@FreeBSD.org> | 2003-05-01 19:03:14 +0000 |
commit | 0b64e1476ba01c6ba095af7d0623e93362281a12 (patch) | |
tree | 736595316c161b3d1ae559f331feaa6ba12b500e /lib/libc/gen/getgrent.c | |
parent | 5ce8f7673e9083fdec888025823478cd3faf1ed7 (diff) | |
download | FreeBSD-src-0b64e1476ba01c6ba095af7d0623e93362281a12.zip FreeBSD-src-0b64e1476ba01c6ba095af7d0623e93362281a12.tar.gz |
Back out the `hiding' of strlcpy and strlcat. Several people
vocally objected to this safety belt.
Diffstat (limited to 'lib/libc/gen/getgrent.c')
-rw-r--r-- | lib/libc/gen/getgrent.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/gen/getgrent.c b/lib/libc/gen/getgrent.c index da50574..d834d09 100644 --- a/lib/libc/gen/getgrent.c +++ b/lib/libc/gen/getgrent.c @@ -620,7 +620,7 @@ dns_group(void *retval, void *mdata, va_list ap) * pointer for the member list terminator. */ adjsize = bufsize - _ALIGNBYTES - sizeof(char *); - linesize = _strlcpy(buffer, hes[0], adjsize); + linesize = strlcpy(buffer, hes[0], adjsize); if (linesize >= adjsize) { *errnop = ERANGE; rv = NS_RETURN; @@ -721,7 +721,7 @@ nis_group(void *retval, void *mdata, va_list ap) rv = NS_NOTFOUND; switch (how) { case nss_lt_name: - if (_strlcpy(buffer, name, bufsize) >= bufsize) + if (strlcpy(buffer, name, bufsize) >= bufsize) goto erange; break; case nss_lt_id: |