diff options
author | Andrei Karas <akaras@inbox.ru> | 2019-02-11 18:32:14 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2019-02-11 21:10:50 +0300 |
commit | 82d634ad431b2ffe7077a561f4eafd2486ede44b (patch) | |
tree | 0405150fd0e8529904495b0d5feac183c5c8c16e /src/map/intif.c | |
parent | ee51e2c33f4ebe2805b090ab0b54023436b41580 (diff) | |
download | hercules-82d634ad431b2ffe7077a561f4eafd2486ede44b.tar.gz hercules-82d634ad431b2ffe7077a561f4eafd2486ede44b.tar.bz2 hercules-82d634ad431b2ffe7077a561f4eafd2486ede44b.tar.xz hercules-82d634ad431b2ffe7077a561f4eafd2486ede44b.zip |
Fix buffer size issue in inter server packets
Fixes #2369
Diffstat (limited to 'src/map/intif.c')
-rw-r--r-- | src/map/intif.c | 4 |
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; |