diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2001-04-30 22:27:24 +0400 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2001-04-30 22:27:24 +0400 |
commit | 965cecdfca617f99b5fab536e6f960201b12b2a4 (patch) | |
tree | 3edfa964582cd1dcf7aba1964e160e7b2fa54540 /winsup | |
parent | 17db110558a7f06c5c7fec8f998449c1e8a9f598 (diff) |
* uinfo.cc (internal_getlogin): Formatting change.
Diffstat (limited to 'winsup')
-rw-r--r-- | winsup/cygwin/ChangeLog | 4 | ||||
-rw-r--r-- | winsup/cygwin/uinfo.cc | 5 |
2 files changed, 7 insertions, 2 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 06db22a7c..309bcb267 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -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. diff --git a/winsup/cygwin/uinfo.cc b/winsup/cygwin/uinfo.cc index 3706e4a7d..65e06bc18 100644 --- a/winsup/cygwin/uinfo.cc +++ b/winsup/cygwin/uinfo.cc @@ -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); |