mirror of
git://anongit.mindrot.org/openssh.git
synced 2025-02-18 06:46:55 +00:00
Replace strcpy with strlcpy.
ok djm, sanity check by Corinna Vinschen.
This commit is contained in:
parent
51a1c21152
commit
d7a58bbac6
@ -68,7 +68,7 @@ cygwin_ssh_privsep_user()
|
||||
if (cygwin_internal (CW_CYGNAME_FROM_WINNAME, "sshd", cyg_privsep_user,
|
||||
sizeof cyg_privsep_user) != 0)
|
||||
#endif
|
||||
strcpy (cyg_privsep_user, "sshd");
|
||||
strlcpy(cyg_privsep_user, "sshd", sizeof(cyg_privsep_user));
|
||||
}
|
||||
return cyg_privsep_user;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user