diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2001-04-30 18:21:48 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2001-04-30 18:21:48 +0000 |
commit | 17db110558a7f06c5c7fec8f998449c1e8a9f598 (patch) | |
tree | d97e40d63ebb7e4dcf4ae1ace8425e272c726101 /winsup/cygwin/shared.cc | |
parent | c0a45b92ccab6ddab9482d436a1ebfe3af387fed (diff) | |
download | newlib-17db110558a7f06c5c7fec8f998449c1e8a9f598.zip newlib-17db110558a7f06c5c7fec8f998449c1e8a9f598.tar.gz newlib-17db110558a7f06c5c7fec8f998449c1e8a9f598.tar.bz2 |
* grp.cc: Eliminate MAX_DOMAIN_NAME define.
(read_etc_group): Substitute MAX_DOMAIN_NAME by
INTERNET_MAX_HOST_NAME_LENGTH.
* passwd.cc (parse_pwd): Don't force pw_name to be lower case.
* sec_helper.cc: Substitute MAX_USER_NAME by UNLEN,
MAX_COMPUTERNAME_LENGTH by INTERNET_MAX_HOST_NAME_LENGTH throughout.
(lookup_name): Slight cleanup.
* security.cc (alloc_sd): Substitute MAX_USER_NAME by UNLEN.
* security.h: Define DEFAULT_UID as DOMAIN_USER_RID_ADMIN and
DEFAULT_GID as DOMAIN_ALIAS_RID_ADMINS.
* shared.cc (memory_init): Substitute MAX_USER_NAME by UNLEN.
* thread.h: Ditto.
* uinfo.cc (internal_getlogin): Substitute MAX_USER_NAME by UNLEN.
Substitute MAX_COMPUTERNAME_LENGTH and MAX_HOST_NAME by
INTERNET_MAX_HOST_NAME_LENGTH.
* winsup.h: Include lmcons.h. Eliminate MAX_USER_NAME and
MAX_HOST_NAME. Move DEFAULT_UID and DEFAULT_GID to security.h.
Diffstat (limited to 'winsup/cygwin/shared.cc')
-rw-r--r-- | winsup/cygwin/shared.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/shared.cc b/winsup/cygwin/shared.cc index 599685c..2312d81 100644 --- a/winsup/cygwin/shared.cc +++ b/winsup/cygwin/shared.cc @@ -154,8 +154,8 @@ memory_init () heap_init (); /* Allocate memory for the per-user mount table */ - char user_name[MAX_USER_NAME]; - DWORD user_name_len = MAX_USER_NAME; + char user_name[UNLEN + 1]; + DWORD user_name_len = UNLEN + 1; if (!GetUserName (user_name, &user_name_len)) strcpy (user_name, "unknown"); |