summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2019-04-09 06:05:54 +0300
committerAndrei Karas <akaras@inbox.ru>2019-05-05 22:22:03 +0300
commit4f39897a139b695ada42d2f783aca978c51ddcf5 (patch)
tree367ce444e3de8dded52e6aebb71a59d20f62321c
parentaa79da0e801a536b22911d47fd12df351c36214e (diff)
downloadhercules-4f39897a139b695ada42d2f783aca978c51ddcf5.tar.gz
hercules-4f39897a139b695ada42d2f783aca978c51ddcf5.tar.bz2
hercules-4f39897a139b695ada42d2f783aca978c51ddcf5.tar.xz
hercules-4f39897a139b695ada42d2f783aca978c51ddcf5.zip
Fix last inventory name letter in packet ZC_INVENTORY_START
-rw-r--r--src/map/clif.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index 38d0215d3..89daf48b7 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -2943,7 +2943,7 @@ static void clif_inventoryStart(struct map_session_data *sd, enum inventory_type
p->invType = type;
#endif
#if PACKETVER_RE_NUM >= 20180919 || PACKETVER_ZERO_NUM >= 20180919 || PACKETVER_MAIN_NUM >= 20181002
- int strLen = (int)safestrnlen(name, 24);
+ int strLen = (int)safestrnlen(name, 24) + 1;
if (strLen > 24)
strLen = 24;
const int len = sizeof(struct ZC_INVENTORY_START) + strLen;