From c4c178cc653c97338c2d4ba890713c728722bc01 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 12 Apr 2019 20:35:02 +0300 Subject: Fix buffer len in function send_client_command --- src/emap/send.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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); -- cgit v1.2.3-70-g09d2