diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-05-09 20:23:53 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-05-09 20:23:53 +0000 |
commit | f405f3e4f972e26cf09f25363d6499b2f265ef8c (patch) | |
tree | e0abbefbce5c732baf04f4454d4ace3129fbedc2 /src/map | |
parent | 03e3c726518b8b3d6d28280210510ad37ee896bf (diff) | |
download | hercules-f405f3e4f972e26cf09f25363d6499b2f265ef8c.tar.gz hercules-f405f3e4f972e26cf09f25363d6499b2f265ef8c.tar.bz2 hercules-f405f3e4f972e26cf09f25363d6499b2f265ef8c.tar.xz hercules-f405f3e4f972e26cf09f25363d6499b2f265ef8c.zip |
- Small fix in npc-created chat rooms to properly include the terminating 0 on the chat's event.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6537 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map')
-rw-r--r-- | src/map/chat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/chat.c b/src/map/chat.c index 03aba375c..311fe1d8e 100644 --- a/src/map/chat.c +++ b/src/map/chat.c @@ -290,7 +290,7 @@ int chat_createnpcchat(struct npc_data *nd,int limit,int pub,int trigger,char* t memcpy(cd->npc_event,ev,49);
cd->npc_event[49] = '\0';
} else
- memcpy(cd->npc_event,ev,strlen(ev));
+ memcpy(cd->npc_event,ev,strlen(ev)+1); //Include the \0
cd->bl.id = map_addobject(&cd->bl);
if(cd->bl.id==0){
|