X-Git-Url: http://andersk.mit.edu/gitweb/nss_nonlocal.git/blobdiff_plain/d7bf1d1107cc32708a01f9b9dc1fbfa6874f0d95..8870ee9ca4ea1fbe316f18448d5c73f31ad729c7:/nonlocal-group.c diff --git a/nonlocal-group.c b/nonlocal-group.c index e21ac84..a704241 100644 --- a/nonlocal-group.c +++ b/nonlocal-group.c @@ -81,7 +81,7 @@ check_nonlocal_gid(const char *user, gid_t gid, int *errnop) struct group gbuf; int old_errno = errno; - int buflen = sysconf(_SC_GETGR_R_SIZE_MAX); + size_t buflen = sysconf(_SC_GETGR_R_SIZE_MAX); char *buf = malloc(buflen); if (buf == NULL) { *errnop = ENOMEM;