mirror of
https://github.com/PowerShell/openssh-portable.git
synced 2025-07-28 00:04:30 +02: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,
|
if (cygwin_internal (CW_CYGNAME_FROM_WINNAME, "sshd", cyg_privsep_user,
|
||||||
sizeof cyg_privsep_user) != 0)
|
sizeof cyg_privsep_user) != 0)
|
||||||
#endif
|
#endif
|
||||||
strcpy (cyg_privsep_user, "sshd");
|
strlcpy(cyg_privsep_user, "sshd", sizeof(cyg_privsep_user));
|
||||||
}
|
}
|
||||||
return cyg_privsep_user;
|
return cyg_privsep_user;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user