summaryrefslogtreecommitdiff
path: root/src/map/intif.c
diff options
context:
space:
mode:
authorLupus <Lupus@54d463be-8e91-2dee-dedb-b68131a5f0ec>2005-03-05 23:07:54 +0000
committerLupus <Lupus@54d463be-8e91-2dee-dedb-b68131a5f0ec>2005-03-05 23:07:54 +0000
commit17d28505138496a82a741431f1cb320279dc679d (patch)
treed61a3b2e57359458ed8c7a6e012a3ddafe73a89c /src/map/intif.c
parentc1c2ee30da1237a04ad57d932b42706884135401 (diff)
downloadhercules-17d28505138496a82a741431f1cb320279dc679d.tar.gz
hercules-17d28505138496a82a741431f1cb320279dc679d.tar.bz2
hercules-17d28505138496a82a741431f1cb320279dc679d.tar.xz
hercules-17d28505138496a82a741431f1cb320279dc679d.zip
added new anti-hacker system in trade.c
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@1204 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/intif.c')
-rw-r--r--src/map/intif.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/map/intif.c b/src/map/intif.c
index 4306838aa..d3d5188a2 100644
--- a/src/map/intif.c
+++ b/src/map/intif.c
@@ -172,9 +172,11 @@ int intif_wis_replay(int id, int flag) {
}
// The transmission of GM only Wisp/Page from server to inter-server
-int intif_wis_message_to_gm(char *Wisp_name, int min_gm_level, char *mes, int mes_len) {
+int intif_wis_message_to_gm(char *Wisp_name, int min_gm_level, char *mes) {
+ int mes_len;
if (CheckForCharServer())
return 0;
+ mes_len = strlen(mes) + 1; // + null
WFIFOW(inter_fd,0) = 0x3003;
WFIFOW(inter_fd,2) = mes_len + 30;
memcpy(WFIFOP(inter_fd,4), Wisp_name, 24);