1
0
mirror of https://github.com/osmarks/ngircd.git synced 2025-06-29 00:22:50 +00:00

Client_SetHostname(): Don't use strlen() to test for value

This commit is contained in:
Alexander Barton 2014-01-10 19:57:03 +01:00
parent 5b4b7e2f55
commit fe73835666

View File

@ -345,7 +345,7 @@ Client_SetHostname( CLIENT *Client, const char *Hostname )
assert(Client != NULL); assert(Client != NULL);
assert(Hostname != NULL); assert(Hostname != NULL);
if (strlen(Conf_CloakHost)) { if (Conf_CloakHost[0]) {
char cloak[GETID_LEN]; char cloak[GETID_LEN];
strlcpy(cloak, Hostname, GETID_LEN); strlcpy(cloak, Hostname, GETID_LEN);