about summary refs log tree commit diff
path: root/nis/nss_nisplus
diff options
context:
space:
mode:
Diffstat (limited to 'nis/nss_nisplus')
-rw-r--r--nis/nss_nisplus/nisplus-hosts.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/nis/nss_nisplus/nisplus-hosts.c b/nis/nss_nisplus/nisplus-hosts.c
index c933ae49be..6f1b4be35b 100644
--- a/nis/nss_nisplus/nisplus-hosts.c
+++ b/nis/nss_nisplus/nisplus-hosts.c
@@ -101,8 +101,9 @@ LINE_PARSER
    /* If we need the host entry in IPv6 form change it now.  */
    if (_res.options & RES_USE_INET6)
      {
-        char *bufptr = data->linebuffer;
-       size_t buflen = (char *) data + datalen - bufptr;
+       char *bufptr = data->linebuffer;
+       /* This should be size_t */
+       int buflen = (char *) data + datalen - bufptr;
        map_v4v6_hostent (result, &bufptr, &buflen);
      }