mirror of
https://github.com/osmarks/ngircd.git
synced 2024-12-13 02:10:27 +00:00
Client_SetHostname(): Don't use strlen() to test for value
This commit is contained in:
parent
5b4b7e2f55
commit
fe73835666
@ -345,7 +345,7 @@ Client_SetHostname( CLIENT *Client, const char *Hostname )
|
||||
assert(Client != NULL);
|
||||
assert(Hostname != NULL);
|
||||
|
||||
if (strlen(Conf_CloakHost)) {
|
||||
if (Conf_CloakHost[0]) {
|
||||
char cloak[GETID_LEN];
|
||||
|
||||
strlcpy(cloak, Hostname, GETID_LEN);
|
||||
|
Loading…
Reference in New Issue
Block a user