From: Ulrich Drepper Date: Sun, 21 Dec 1997 21:17:10 +0000 (+0000) Subject: (LINE_PARSER): Use pointer of correct type for map_v4v6_hostent call. X-Git-Tag: cvs/glibc-2_0_6pre5~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3ac58092a2be8970d318ecdf5a06a44271d7f9cd;p=thirdparty%2Fglibc.git (LINE_PARSER): Use pointer of correct type for map_v4v6_hostent call. --- diff --git a/nis/nss_nis/nis-hosts.c b/nis/nss_nis/nis-hosts.c index 42fc5aeac72..1844d24b663 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);