diff options
author | amber <amber@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2004-12-13 06:05:37 +0000 |
---|---|---|
committer | amber <amber@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2004-12-13 06:05:37 +0000 |
commit | 50c1b03b8979ac793375b26867053f43e4983dc9 (patch) | |
tree | 9338d18d6af889c09a68095b558d3040b83182db /src/map/chat.c | |
parent | 11edd9bd6b905e1da203d49f0646cd9502536f1f (diff) | |
download | hercules-50c1b03b8979ac793375b26867053f43e4983dc9.tar.gz hercules-50c1b03b8979ac793375b26867053f43e4983dc9.tar.bz2 hercules-50c1b03b8979ac793375b26867053f43e4983dc9.tar.xz hercules-50c1b03b8979ac793375b26867053f43e4983dc9.zip |
update
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@550 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/chat.c')
-rw-r--r-- | src/map/chat.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/chat.c b/src/map/chat.c index 75788f03b..c7ec13a5f 100644 --- a/src/map/chat.c +++ b/src/map/chat.c @@ -275,7 +275,7 @@ int chat_createnpcchat(struct npc_data *nd,int limit,int pub,int trigger,char* t cd->trigger = trigger; cd->pub = pub; cd->users = 0; - memcpy(cd->pass,"",8); + memcpy(cd->pass,"",1); if(titlelen>=sizeof(cd->title)-1) titlelen=sizeof(cd->title)-1; memcpy(cd->title,title,titlelen); cd->title[titlelen]=0; @@ -286,7 +286,7 @@ int chat_createnpcchat(struct npc_data *nd,int limit,int pub,int trigger,char* t cd->bl.type = BL_CHAT; cd->owner_ = (struct block_list *)nd; cd->owner = &cd->owner_; - memcpy(cd->npc_event,ev,sizeof(cd->npc_event)); + memcpy(cd->npc_event,ev,strlen(ev)); cd->bl.id = map_addobject(&cd->bl); if(cd->bl.id==0){ |