]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
(LINE_PARSER): Use pointer of correct type for map_v4v6_hostent call.
authorUlrich Drepper <drepper@redhat.com>
Sun, 21 Dec 1997 21:17:10 +0000 (21:17 +0000)
committerUlrich Drepper <drepper@redhat.com>
Sun, 21 Dec 1997 21:17:10 +0000 (21:17 +0000)
nis/nss_nis/nis-hosts.c

index 42fc5aeac72322f35eef1284eaf7fda2c9aacc02..1844d24b66379bf9898219d3b89f8bef8056b466 100644 (file)
@@ -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);