* uinfo.cc (internal_getlogin): Formatting change.

This commit is contained in:
Corinna Vinschen 2001-04-30 18:27:24 +00:00
parent 17db110558
commit 965cecdfca
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,7 @@
Mon Apr 30 20:26:00 2001 Corinna Vinschen <corinna@vinschen.de>
* uinfo.cc (internal_getlogin): Formatting change.
Mon Apr 30 19:58:00 2001 Corinna Vinschen <corinna@vinschen.de>
* grp.cc: Eliminate MAX_DOMAIN_NAME define.

View File

@ -61,11 +61,12 @@ internal_getlogin (cygheap_user &user)
/* If that failed, try to get that info from NetBIOS */
else if (!NetWkstaUserGetInfo (NULL, 1, (LPBYTE *)&wui))
{
char buf[512];
char buf[512]; /* Bigger than each of the below defines. */
sys_wcstombs (buf, wui->wkui1_username, UNLEN + 1);
user.set_name (buf);
sys_wcstombs (buf, wui->wkui1_logon_server, INTERNET_MAX_HOST_NAME_LENGTH + 1);
sys_wcstombs (buf, wui->wkui1_logon_server,
INTERNET_MAX_HOST_NAME_LENGTH + 1);
user.set_logsrv (buf);
sys_wcstombs (buf, wui->wkui1_logon_domain,
INTERNET_MAX_HOST_NAME_LENGTH + 1);