diff options
author | Ulrich Drepper <drepper@redhat.com> | 1997-12-21 21:17:10 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1997-12-21 21:17:10 +0000 |
commit | 3ac58092a2be8970d318ecdf5a06a44271d7f9cd (patch) | |
tree | 3e4a00130e1e4b11ecd0812817b0ef84e56e3f73 | |
parent | 8841bd89aa4d8ea17a7444ad1db67d4d0b5c6c23 (diff) |
(LINE_PARSER): Use pointer of correct type for map_v4v6_hostent call.
-rw-r--r-- | nis/nss_nis/nis-hosts.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/nis/nss_nis/nis-hosts.c b/nis/nss_nis/nis-hosts.c index 42fc5aeac7..1844d24b66 100644 --- a/nis/nss_nis/nis-hosts.c +++ b/nis/nss_nis/nis-hosts.c @@ -92,7 +92,9 @@ LINE_PARSER { char *bufptr = data->linebuffer; size_t buflen = (char *) data + datalen - bufptr; - map_v4v6_hostent (result, &bufptr, &buflen); + int ibuflen = buflen; /* Use this for machines with size_t > int. */ + map_v4v6_hostent (result, &bufptr, &ibuflen); + buflen = ibuflen; } STRING_FIELD (result->h_name, isspace, 1); |