diff options
author | Andrei Karas <akaras@inbox.ru> | 2019-04-12 20:35:02 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2019-04-12 20:35:02 +0300 |
commit | c4c178cc653c97338c2d4ba890713c728722bc01 (patch) | |
tree | 2ddbb53738c902f9cee0c48400787937234c03b8 | |
parent | 74f62a9d600defa742b6e217edf4876190c4962d (diff) | |
download | plugin-s20190422.tar.gz plugin-s20190422.tar.bz2 plugin-s20190422.tar.xz plugin-s20190422.zip |
Fix buffer len in function send_client_commands20190422
-rw-r--r-- | src/emap/send.c | 2 |
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); |