diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-02-21 20:59:37 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-02-21 20:59:37 +0300 |
commit | a7a6a9f932c1d8da883a7744fc85ba10d4ecd3d3 (patch) | |
tree | e8d77c3f06498db11d1f9793efdb07709c89928e /src/elogin/parse.c | |
parent | fabe15b29d7db7823568548da998b24e75f2cce8 (diff) | |
download | evol-hercules-a7a6a9f932c1d8da883a7744fc85ba10d4ecd3d3.tar.gz evol-hercules-a7a6a9f932c1d8da883a7744fc85ba10d4ecd3d3.tar.bz2 evol-hercules-a7a6a9f932c1d8da883a7744fc85ba10d4ecd3d3.tar.xz evol-hercules-a7a6a9f932c1d8da883a7744fc85ba10d4ecd3d3.zip |
Fix compilation warnings.
Diffstat (limited to 'src/elogin/parse.c')
-rw-r--r-- | src/elogin/parse.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/elogin/parse.c b/src/elogin/parse.c index 66916f9..a59bdb6 100644 --- a/src/elogin/parse.c +++ b/src/elogin/parse.c @@ -55,7 +55,7 @@ int elogin_parse_client_login_pre(int *fdPtr, } char username[NAME_LENGTH]; safestrncpy(username, (const char*)RFIFOP(fd, 6), NAME_LENGTH); - int len = strnlen(username, NAME_LENGTH); + int len = safestrnlen(username, NAME_LENGTH); if (clientVersion < 2) { login->login_error(fd, 5); @@ -95,7 +95,7 @@ void elogin_parse_client_login2(int fd) safestrncpy(username, (const char*)RFIFOP(fd, 2), NAME_LENGTH); - int len = strnlen(username, NAME_LENGTH); + int len = safestrnlen(username, NAME_LENGTH); if (len < 2 || !(username[len - 2] == '_') || !memchr("FfMm", username[len - 1], 4)) { login->login_error(fd, 3); |