summaryrefslogtreecommitdiff
path: root/src/map/guild.c
diff options
context:
space:
mode:
authorultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-09-04 15:29:06 +0000
committerultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-09-04 15:29:06 +0000
commit1963a8147972d6febede94ff5ff51f6642fb9551 (patch)
tree3129ab6baf11cb2a872632c433097afd71723d0d /src/map/guild.c
parent4973e481c8d45afada7a2e89c6590a70245afe27 (diff)
downloadhercules-1963a8147972d6febede94ff5ff51f6642fb9551.tar.gz
hercules-1963a8147972d6febede94ff5ff51f6642fb9551.tar.bz2
hercules-1963a8147972d6febede94ff5ff51f6642fb9551.tar.xz
hercules-1963a8147972d6febede94ff5ff51f6642fb9551.zip
Patched a dormant off-by-one bug in guild leader changing code, which was triggered by r11571 and caused guild data corruption on TXT charserver (bugreport:2175).
Blame goes to r3185 and r3719. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13191 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/guild.c')
-rw-r--r--src/map/guild.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/guild.c b/src/map/guild.c
index ce75a0322..fced17189 100644
--- a/src/map/guild.c
+++ b/src/map/guild.c
@@ -1634,7 +1634,7 @@ int guild_gm_change(int guild_id, struct map_session_data *sd)
return 0;
//Notify servers that master has changed.
- intif_guild_change_gm(guild_id, sd->status.name, strlen(sd->status.name));
+ intif_guild_change_gm(guild_id, sd->status.name, strlen(sd->status.name)+1);
return 1;
}