Cygwin: passwd/group: raise local name buffer size
Make sure a domain+username fits into the local name buffer. The former buffer size didn't take adding a domain name to a really_really_long_user_name into account. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
parent
9a3cc77b2a
commit
507982af79
|
@ -1919,7 +1919,7 @@ char *
|
|||
pwdgrp::fetch_account_from_windows (fetch_user_arg_t &arg, cyg_ldap *pldap)
|
||||
{
|
||||
/* Used in LookupAccount calls. */
|
||||
WCHAR namebuf[UNLEN + 1], *name = namebuf;
|
||||
WCHAR namebuf[DNLEN + 1 + UNLEN + 1], *name = namebuf;
|
||||
WCHAR dom[DNLEN + 1] = L"";
|
||||
cygsid csid;
|
||||
DWORD nlen = UNLEN + 1;
|
||||
|
|
Loading…
Reference in New Issue