Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2003-01-02 03:03:23 +0300
committerChristopher Faylor <me@cgf.cx>2003-01-02 03:03:23 +0300
commit2665fb15949da40a9653c3e5bbed486276a1aaf7 (patch)
treeba20dca224910c7099cedc42a5b24f11629c3170 /winsup/cygwin/passwd.cc
parent8619b42be78d0e18192bded34268eb2614a98eba (diff)
* passwd.cc (getpwuid_r32): Revert previous change.
Diffstat (limited to 'winsup/cygwin/passwd.cc')
-rw-r--r--winsup/cygwin/passwd.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/winsup/cygwin/passwd.cc b/winsup/cygwin/passwd.cc
index 8f947a4fc..c3bb7a115 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;