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(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);
|
||||||
|
|
Loading…
Reference in New Issue