diff options
author | Dave Korn <dave.korn.cygwin@gmail.com> | 2007-08-31 00:39:41 +0000 |
---|---|---|
committer | Dave Korn <dave.korn.cygwin@gmail.com> | 2007-08-31 00:39:41 +0000 |
commit | d848b3419f466800f9e266d96033dc2773a19908 (patch) | |
tree | 3dc996d792707c8806ebc8c2093d545751863485 /winsup/utils/mkgroup.c | |
parent | b440439a899768a7fce0f1c414f86f9fc1473553 (diff) | |
download | cygnal-d848b3419f466800f9e266d96033dc2773a19908.tar.gz cygnal-d848b3419f466800f9e266d96033dc2773a19908.tar.bz2 cygnal-d848b3419f466800f9e266d96033dc2773a19908.zip |
2007-08-31 Dave Korn <dave.korn@artimi.com>
* mkgroup.c (enum_groups): Use MAX_PREFERRED_LENGTH in netgroupenum
call so that it will automatically size returned buffer sufficiently.
Diffstat (limited to 'winsup/utils/mkgroup.c')
-rw-r--r-- | winsup/utils/mkgroup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/utils/mkgroup.c b/winsup/utils/mkgroup.c index 376162963..1926d9156 100644 --- a/winsup/utils/mkgroup.c +++ b/winsup/utils/mkgroup.c @@ -350,7 +350,7 @@ enum_groups (LPWSTR servername, int print_sids, int print_users, int id_offset, entriesread=1; } else - rc = netgroupenum (servername, 2, (void *) & buffer, 1024, + rc = netgroupenum (servername, 2, (void *) & buffer, MAX_PREFERRED_LENGTH, &entriesread, &totalentries, &resume_handle); switch (rc) { |