diff options
author | Christopher Faylor <me@cgf.cx> | 2003-01-26 09:02:34 +0300 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2003-01-26 09:02:34 +0300 |
commit | bdbd7fb6b9c446616197f9da32071f52d3bbd96f (patch) | |
tree | 672fc21f7d3a12e81b14cdebb3059a332e6bc0b4 /winsup/cygwin/passwd.cc | |
parent | c9133395631fb7ff2fb37df4a7ac848d1ddf19a0 (diff) |
* passwd.cc (pwdgrp::parse_passwd): Eliminate use of memset. The structure
should always be completely filled out.
* grp.cc (pwdgrp::parse_group): Ditto.
* grp.cc (pwdgrp::parse_group): Fix off-by-one problem in allocating
Diffstat (limited to 'winsup/cygwin/passwd.cc')
-rw-r--r-- | winsup/cygwin/passwd.cc | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/winsup/cygwin/passwd.cc b/winsup/cygwin/passwd.cc index fe21299b2..113f92acf 100644 --- a/winsup/cygwin/passwd.cc +++ b/winsup/cygwin/passwd.cc @@ -38,9 +38,6 @@ bool pwdgrp::parse_passwd () { # define res (*passwd_buf)[curr_lines] - - memset (&res, 0, sizeof (res)); - res.pw_name = next_str (); res.pw_passwd = next_str (); |