summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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);