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
1 changed files with 1 additions and 1 deletions

View File

@ -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);