summaryrefslogtreecommitdiff
path: root/src/char
diff options
context:
space:
mode:
authorai4rei <ai4rei@54d463be-8e91-2dee-dedb-b68131a5f0ec>2010-12-02 14:17:07 +0000
committerai4rei <ai4rei@54d463be-8e91-2dee-dedb-b68131a5f0ec>2010-12-02 14:17:07 +0000
commiteada7b359cb6f7aca97a076f4f91da532e0074b0 (patch)
tree85df121432d018d68d7f23e0a435ee92c4a073e7 /src/char
parent3769410529065beeeb2bc6ed0fba631f9c64a2e5 (diff)
downloadhercules-eada7b359cb6f7aca97a076f4f91da532e0074b0.tar.gz
hercules-eada7b359cb6f7aca97a076f4f91da532e0074b0.tar.bz2
hercules-eada7b359cb6f7aca97a076f4f91da532e0074b0.tar.xz
hercules-eada7b359cb6f7aca97a076f4f91da532e0074b0.zip
* Added defines for guild notice sizes (MAX_GUILDMES1 and MAX_GUILDMES2).
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14544 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/char')
-rw-r--r--src/char/int_guild.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/char/int_guild.c b/src/char/int_guild.c
index 9a815200f..31cceeff0 100644
--- a/src/char/int_guild.c
+++ b/src/char/int_guild.c
@@ -865,8 +865,8 @@ int mapif_guild_notice(struct guild *g)
WBUFW(buf,0) = 0x383e;
WBUFL(buf,2) = g->guild_id;
- memcpy(WBUFP(buf,6), g->mes1, 60);
- memcpy(WBUFP(buf,66), g->mes2, 120);
+ memcpy(WBUFP(buf,6), g->mes1, MAX_GUILDMES1);
+ memcpy(WBUFP(buf,66), g->mes2, MAX_GUILDMES2);
mapif_sendall(buf, 186);
return 0;
@@ -1404,8 +1404,8 @@ int mapif_parse_GuildNotice(int fd, int guild_id, const char *mes1, const char *
g = (struct guild*)idb_get(guild_db, guild_id);
if (g == NULL)
return 0;
- memcpy(g->mes1, mes1, 60);
- memcpy(g->mes2, mes2, 120);
+ memcpy(g->mes1, mes1, MAX_GUILDMES1);
+ memcpy(g->mes2, mes2, MAX_GUILDMES2);
return mapif_guild_notice(g);
}