summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 e98d8e363..eba0229ed 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -9810,7 +9810,7 @@ void clif_parse_NpcStringInput(int fd,struct map_session_data *sd)
// Exploit prevention if crafted packets (without null) is being sent. [Lance]
memcpy(sd->npc_str,RFIFOP(fd,8),message_len);
- sd->npc_str[message_len-1]=0;
+ sd->npc_str[message_len]=0;
npc_scriptcont(sd,RFIFOL(fd,4));
}