* dcrt0.cc (quoted): Renamed strechr to strchrnul.
* environ.cc (environ_init): Likewise. * sec_acl.cc (aclfromtext32): Likewise. * sec_auth.cc (extract_nt_dom_user): Likewise. * uinfo.cc (pwdgrp::next_str): Likewise. * string.h (strechr): Likewise.
This commit is contained in:
@@ -861,7 +861,7 @@ aclfromtext32 (char *acltextp, int *)
|
||||
return NULL;
|
||||
}
|
||||
lacl[pos].a_id = pw->pw_uid;
|
||||
c = strechr (c, ':');
|
||||
c = strchrnul (c, ':');
|
||||
}
|
||||
else if (isdigit (*c))
|
||||
lacl[pos].a_id = strtol (c, &c, 10);
|
||||
@@ -889,7 +889,7 @@ aclfromtext32 (char *acltextp, int *)
|
||||
return NULL;
|
||||
}
|
||||
lacl[pos].a_id = gr->gr_gid;
|
||||
c = strechr (c, ':');
|
||||
c = strchrnul (c, ':');
|
||||
}
|
||||
else if (isdigit (*c))
|
||||
lacl[pos].a_id = strtol (c, &c, 10);
|
||||
|
Reference in New Issue
Block a user