summaryrefslogtreecommitdiff
path: root/src/map/clif.c
diff options
context:
space:
mode:
authorKenpachi Developer <Kenpachi.Developer@gmx.de>2020-05-01 08:41:11 +0200
committerKenpachi Developer <Kenpachi.Developer@gmx.de>2020-05-09 22:01:53 +0200
commit08922748cfc4cd30cbe5d2e6bdee9f2f7c4c7c39 (patch)
tree4fdee381714b738cc6af000f59e84c3a2399866f /src/map/clif.c
parent66de70164a1cd0fed59671e09bad7c2fca1d90eb (diff)
downloadhercules-08922748cfc4cd30cbe5d2e6bdee9f2f7c4c7c39.tar.gz
hercules-08922748cfc4cd30cbe5d2e6bdee9f2f7c4c7c39.tar.bz2
hercules-08922748cfc4cd30cbe5d2e6bdee9f2f7c4c7c39.tar.xz
hercules-08922748cfc4cd30cbe5d2e6bdee9f2f7c4c7c39.zip
Adjust size of fields holding a string variable's value to SCRIPT_STRING_VAR_LENGTH + 1
Also exclude NULL-terminator from string variable value length in inter-server communication.
Diffstat (limited to 'src/map/clif.c')
-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 496a8beda..df2c4b392 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -11777,7 +11777,7 @@ static void clif_parse_WisMessage(int fd, struct map_session_data *sd)
char *str = target + 4; // Skip the NPC: string part.
struct npc_data *nd;
if ((nd = npc->name2id(str))) {
- char split_data[NUM_WHISPER_VAR][CHAT_SIZE_MAX];
+ char split_data[NUM_WHISPER_VAR][SCRIPT_STRING_VAR_LENGTH + 1];
char *split;
char output[256];