]> andersk Git - nss_nonlocal.git/blobdiff - nonlocal-group.c
Change type of buflen to size_t.
[nss_nonlocal.git] / nonlocal-group.c
index e21ac84562d190aed6ee9ad47667c76fdb3a1b2d..a7042416ac459ce18542c2cf3a5a04e496ae3e48 100644 (file)
@@ -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;
This page took 0.033752 seconds and 4 git commands to generate.