diff options
author | Christopher Faylor <me@cgf.cx> | 2003-01-02 00:04:31 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2003-01-02 00:04:31 +0000 |
commit | ce59b5f96c8fd60c3be054ad5f3b543f16a7dd83 (patch) | |
tree | 72de945c976f7c88992265abfda52f950216b993 | |
parent | be0af7890ec61c53b35827b2e9ffc8477311993e (diff) | |
download | newlib-unlabeled-1.54.4.zip newlib-unlabeled-1.54.4.tar.gz newlib-unlabeled-1.54.4.tar.bz2 |
* passwd.cc (getpwuid_r32): Revert previous change.github/unlabeled-1.54.4unlabeled-1.54.4
-rw-r--r-- | winsup/cygwin/passwd.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/winsup/cygwin/passwd.cc b/winsup/cygwin/passwd.cc index 8f947a4..c3bb7a1 100644 --- a/winsup/cygwin/passwd.cc +++ b/winsup/cygwin/passwd.cc @@ -266,8 +266,7 @@ getpwuid_r32 (__uid32_t uid, struct passwd *pwd, char *buffer, size_t bufsize, s /* check needed buffer size. */ size_t needsize = strlen (temppw->pw_name) + strlen (temppw->pw_dir) + strlen (temppw->pw_shell) + strlen (temppw->pw_gecos) + - strlen (temppw->pw_passwd) + 5 + - sizeof (temppw->pw_uid) + sizeof (temppw->pw_gid); + strlen (temppw->pw_passwd) + 5; if (needsize > bufsize) return ERANGE; |