mirror of
https://github.com/osmarks/ngircd.git
synced 2025-10-14 14:17:38 +00:00
Client_SetHostname(): Don't use strlen() to test for value
This commit is contained in:
@@ -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);
|
||||||
|
Reference in New Issue
Block a user