summaryrefslogtreecommitdiff
path: root/src/elogin/parse.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-04-28 03:56:12 +0300
committerAndrei Karas <akaras@inbox.ru>2016-04-28 03:56:12 +0300
commit447787839e492410611ebe16d01fd5e1ae52e045 (patch)
tree0df52644e225f65e2d23f358dc4db5906c1595be /src/elogin/parse.c
parentd37fe74804b94065259703509b4b3dc3f53c30a5 (diff)
downloadevol-hercules-447787839e492410611ebe16d01fd5e1ae52e045.tar.gz
evol-hercules-447787839e492410611ebe16d01fd5e1ae52e045.tar.bz2
evol-hercules-447787839e492410611ebe16d01fd5e1ae52e045.tar.xz
evol-hercules-447787839e492410611ebe16d01fd5e1ae52e045.zip
Fix different warnings.
Diffstat (limited to 'src/elogin/parse.c')
-rw-r--r--src/elogin/parse.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/elogin/parse.c b/src/elogin/parse.c
index 3140615..3e0155a 100644
--- a/src/elogin/parse.c
+++ b/src/elogin/parse.c
@@ -55,7 +55,7 @@ int elogin_client_login_pre(int *fdPtr,
}
char username[NAME_LENGTH];
safestrncpy(username, RFIFOP(fd, 6), NAME_LENGTH);
- int len = safestrnlen(username, NAME_LENGTH);
+ int len = (int)safestrnlen(username, NAME_LENGTH);
if (clientVersion < 2)
{
lclif->login_error(fd, 5);
@@ -94,7 +94,7 @@ void elogin_parse_client_login2(int fd)
safestrncpy(username, RFIFOP(fd, 2), NAME_LENGTH);
- int len = safestrnlen(username, NAME_LENGTH);
+ int len = (int)safestrnlen(username, NAME_LENGTH);
if (len < 2 || !(username[len - 2] == '_') || !memchr("FfMm", username[len - 1], 4))
{
lclif->login_error(fd, 3);