summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2019-04-12 20:35:02 +0300
committerAndrei Karas <akaras@inbox.ru>2019-04-12 20:35:02 +0300
commitc4c178cc653c97338c2d4ba890713c728722bc01 (patch)
tree2ddbb53738c902f9cee0c48400787937234c03b8
parent74f62a9d600defa742b6e217edf4876190c4962d (diff)
downloadevol-hercules-tmw2_r08.99_190501.tar.gz
evol-hercules-tmw2_r08.99_190501.tar.bz2
evol-hercules-tmw2_r08.99_190501.tar.xz
evol-hercules-tmw2_r08.99_190501.zip
Fix buffer len in function send_client_commandtmw2_r08.99_190501s20190422
-rw-r--r--src/emap/send.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/emap/send.c b/src/emap/send.c
index 454bf8f..82ba452 100644
--- a/src/emap/send.c
+++ b/src/emap/send.c
@@ -388,7 +388,7 @@ void send_client_command(struct map_session_data *sd, const char *const command)
const unsigned int len = (unsigned int)strlen(command);
const int fd = sd->fd;
- WFIFOHEAD (fd, len);
+ WFIFOHEAD (fd, len + 4);
WFIFOW (fd, 0) = 0xb16 + evolPacketOffset;
WFIFOW (fd, 2) = len + 4;
memcpy (WFIFOP (fd, 4), command, len);