summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorai4rei <ai4rei@54d463be-8e91-2dee-dedb-b68131a5f0ec>2010-11-19 22:57:01 +0000
committerai4rei <ai4rei@54d463be-8e91-2dee-dedb-b68131a5f0ec>2010-11-19 22:57:01 +0000
commitbd1514e5dac76bd216f3505345d81f24de764f57 (patch)
tree93e8f0bec7cb6df771eeafffbd8a439051903d67 /src
parent02731a49221c436aeb630eddda79d1a0d65438f7 (diff)
downloadhercules-bd1514e5dac76bd216f3505345d81f24de764f57.tar.gz
hercules-bd1514e5dac76bd216f3505345d81f24de764f57.tar.bz2
hercules-bd1514e5dac76bd216f3505345d81f24de764f57.tar.xz
hercules-bd1514e5dac76bd216f3505345d81f24de764f57.zip
* Fixed WFIFOL being used instead of WFIFOW for a short field of packet 0x2710 (bugreport:2819).
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14468 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src')
-rw-r--r--src/char/char.c2
-rw-r--r--src/char_sql/char.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/char/char.c b/src/char/char.c
index 98a213316..91ad7d33d 100644
--- a/src/char/char.c
+++ b/src/char/char.c
@@ -3893,7 +3893,7 @@ int check_connect_login_server(int tid, unsigned int tick, int id, intptr data)
memcpy(WFIFOP(login_fd,26), passwd, 24);
WFIFOL(login_fd,50) = 0;
WFIFOL(login_fd,54) = htonl(char_ip);
- WFIFOL(login_fd,58) = htons(char_port);
+ WFIFOW(login_fd,58) = htons(char_port);
memcpy(WFIFOP(login_fd,60), server_name, 20);
WFIFOW(login_fd,80) = 0;
WFIFOW(login_fd,82) = char_maintenance;
diff --git a/src/char_sql/char.c b/src/char_sql/char.c
index be94c920f..36944cd35 100644
--- a/src/char_sql/char.c
+++ b/src/char_sql/char.c
@@ -3624,7 +3624,7 @@ int check_connect_login_server(int tid, unsigned int tick, int id, intptr data)
memcpy(WFIFOP(login_fd,26), passwd, 24);
WFIFOL(login_fd,50) = 0;
WFIFOL(login_fd,54) = htonl(char_ip);
- WFIFOL(login_fd,58) = htons(char_port);
+ WFIFOW(login_fd,58) = htons(char_port);
memcpy(WFIFOP(login_fd,60), server_name, 20);
WFIFOW(login_fd,80) = 0;
WFIFOW(login_fd,82) = char_maintenance;