summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-06-06 03:24:40 +0000
committerLance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-06-06 03:24:40 +0000
commit56a66e3f3e6bbfa77d4558b309d563cbd915c83e (patch)
treeab66412e89cbc71ae19490201a81420836020873 /src
parentb05c5948bc4ac52ff2baa7e4eaf5a979b4f7740e (diff)
downloadhercules-56a66e3f3e6bbfa77d4558b309d563cbd915c83e.tar.gz
hercules-56a66e3f3e6bbfa77d4558b309d563cbd915c83e.tar.bz2
hercules-56a66e3f3e6bbfa77d4558b309d563cbd915c83e.tar.xz
hercules-56a66e3f3e6bbfa77d4558b309d563cbd915c83e.zip
Forgot something
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7002 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src')
-rw-r--r--src/map/guild.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/guild.c b/src/map/guild.c
index 80d1e2fde..3d4aeb9f7 100644
--- a/src/map/guild.c
+++ b/src/map/guild.c
@@ -482,8 +482,8 @@ int guild_npc_request_info(int guild_id,const char *event)
if(event==NULL || *event==0)
return guild_request_info(guild_id);
- ev=(struct eventlist *)aCalloc(sizeof(struct eventlist));
- memcpy(ev->name,event,strlen(event) + 1);
+ ev=(struct eventlist *)aCalloc(sizeof(struct eventlist),1);
+ memcpy(ev->name,event,strlen(event));
//The one in the db becomes the next event from this.
ev->next=idb_put(guild_infoevent_db,guild_id,ev);
return guild_request_info(guild_id);