mirror of
https://github.com/osmarks/ngircd.git
synced 2025-01-19 12:02:52 +00:00
conf.c: Use strlcpy() instead of strcpy()
This fixes the following warning of gcc on OpenBSD 5.0: conf.c:728: warning: strcpy() is almost always misused, please use strlcpy()
This commit is contained in:
parent
e29d198700
commit
4123118d5a
@ -725,7 +725,8 @@ Set_Defaults(bool InitServers)
|
||||
strlcpy(Conf_Chroot, CHROOT_DIR, sizeof(Conf_Chroot));
|
||||
strcpy(Conf_CloakHost, "");
|
||||
strcpy(Conf_CloakHostModeX, "");
|
||||
strcpy(Conf_CloakHostSalt, ngt_RandomStr(random, RANDOM_SALT_LEN));
|
||||
strlcpy(Conf_CloakHostSalt, ngt_RandomStr(random, RANDOM_SALT_LEN),
|
||||
sizeof(Conf_CloakHostSalt));
|
||||
Conf_CloakUserToNick = false;
|
||||
Conf_ConnectIPv4 = true;
|
||||
#ifdef WANT_IPV6
|
||||
|
Loading…
Reference in New Issue
Block a user