From 4f39897a139b695ada42d2f783aca978c51ddcf5 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 9 Apr 2019 06:05:54 +0300 Subject: Fix last inventory name letter in packet ZC_INVENTORY_START --- src/map/clif.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3-70-g09d2