* 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
This commit is contained in:
@@ -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 ();
|
||||
|
||||
|
Reference in New Issue
Block a user