summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-05-21 02:38:34 +0000
committerLance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-05-21 02:38:34 +0000
commit673424a0cc951fde76c498836172042f036ccc2a (patch)
treef8cb25bbead85a5bc152c12588d8a53258546fcc
parentd84d35044f5371ff5ed28a406a672bc455ab66ef (diff)
downloadhercules-673424a0cc951fde76c498836172042f036ccc2a.tar.gz
hercules-673424a0cc951fde76c498836172042f036ccc2a.tar.bz2
hercules-673424a0cc951fde76c498836172042f036ccc2a.tar.xz
hercules-673424a0cc951fde76c498836172042f036ccc2a.zip
* Fix the fix: Should be sd->npc_str[message_len]=0;
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6671 54d463be-8e91-2dee-dedb-b68131a5f0ec
-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));
}