summaryrefslogtreecommitdiff
path: root/src/map/guild.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/guild.c')
-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 5364fb8bd..80d1e2fde 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 *)aMalloc(sizeof(struct eventlist));
- memcpy(ev->name,event,strlen(event));
+ ev=(struct eventlist *)aCalloc(sizeof(struct eventlist));
+ memcpy(ev->name,event,strlen(event) + 1);
//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);