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.
This commit is contained in:
parent
b440439a89
commit
d848b3419f
@ -1,3 +1,8 @@
|
||||
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.
|
||||
|
||||
2007-08-03 Dave Korn <dave.korn@artimi.com>
|
||||
|
||||
* Makefile.in (cygcheck.exe): Add bloda.o as prerequisite, adjusting
|
||||
|
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user