summaryrefslogtreecommitdiff
path: root/src/map/intif.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2019-02-11 18:08:22 +0000
committerGitHub <noreply@github.com>2019-02-11 18:08:22 +0000
commit0916d47982569a332e9536024f26ff14b35665be (patch)
tree0405150fd0e8529904495b0d5feac183c5c8c16e /src/map/intif.c
parentee51e2c33f4ebe2805b090ab0b54023436b41580 (diff)
parent66844b9f4a4c72055dc352ac5c94fb3d84204b3b (diff)
downloadhercules-0916d47982569a332e9536024f26ff14b35665be.tar.gz
hercules-0916d47982569a332e9536024f26ff14b35665be.tar.bz2
hercules-0916d47982569a332e9536024f26ff14b35665be.tar.xz
hercules-0916d47982569a332e9536024f26ff14b35665be.zip
Merge pull request #2370 from 4144/fix2369
Fix buffer size issue in inter server packets
Diffstat (limited to 'src/map/intif.c')
-rw-r--r--src/map/intif.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/intif.c b/src/map/intif.c
index 18b41fe04..8028d4474 100644
--- a/src/map/intif.c
+++ b/src/map/intif.c
@@ -77,7 +77,7 @@ static int intif_create_pet(int account_id, int char_id, int pet_class, int pet_
if (intif->CheckForCharServer())
return 0;
nullpo_ret(pet_name);
- WFIFOHEAD(inter_fd, 28 + NAME_LENGTH);
+ WFIFOHEAD(inter_fd, 32 + NAME_LENGTH);
WFIFOW(inter_fd, 0) = 0x3080;
WFIFOL(inter_fd, 2) = account_id;
WFIFOL(inter_fd, 6) = char_id;
@@ -907,7 +907,7 @@ static int intif_guild_memberinfoshort(int guild_id, int account_id, int char_id
{
if (intif->CheckForCharServer())
return 0;
- WFIFOHEAD(inter_fd, 19);
+ WFIFOHEAD(inter_fd, 23);
WFIFOW(inter_fd, 0) = 0x3035;
WFIFOL(inter_fd, 2) = guild_id;
WFIFOL(inter_fd, 6) = account_id;