diff options
-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 0bc95ca9c..eb77fdd89 100644 --- a/src/map/chat.c +++ b/src/map/chat.c @@ -42,7 +42,7 @@ int chat_createchat(struct map_session_data* sd,int limit, int pub, char* pass, titlelen = cap_value(titlelen, 0, sizeof(cd->title)-1); // empty string achievable by using custom client // the following two input strings aren't zero terminated, have to handle it manually memcpy(cd->pass, pass, 8); cd->pass[8]= '\0'; - memcpy(cd->title, title, titlelen); cd->title[titlelen] = '\0'; + memcpy(cd->title, title, titlelen); cd->title[titlelen] = '\0'; cd->owner = (struct block_list **)(&cd->usersd[0]); cd->usersd[0] = sd; |