Forgot something

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7002 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
Lance 2006-06-06 03:24:40 +00:00
parent 1a63e4205f
commit a8c05f7b22

View File

@ -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);