From 1fed71acfd452861701596f013388a8249e637f7 Mon Sep 17 00:00:00 2001 From: "Guilherme G. Menaldo" Date: Sat, 17 Aug 2024 14:55:43 -0300 Subject: [PATCH] Fix size of PACKET_CHARLOGIN_ONLINE_ACCOUNTS we should set the final length and not the initially alloc'ed one --- src/char/char.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/char/char.c b/src/char/char.c index 99f06774a12..9b2652d0440 100644 --- a/src/char/char.c +++ b/src/char/char.c @@ -5329,7 +5329,7 @@ static int char_send_accounts_tologin(int tid, int64 tick, int id, intptr_t data p->packetLength = sizeof(struct PACKET_CHARLOGIN_ONLINE_ACCOUNTS) + sizeof(*p->accounts) * i; p->list_length = i; - WFIFOSET(chr->login_fd, len); + WFIFOSET(chr->login_fd, p->packetLength); } return 0; }