diff --git a/src/irc/core/modes.c b/src/irc/core/modes.c index 5c4a45da..17464a16 100644 --- a/src/irc/core/modes.c +++ b/src/irc/core/modes.c @@ -98,7 +98,7 @@ void prefix_add(char *prefixes, char newprefix, SERVER_REC *server) newprefixes[newpos] = '\0'; - memcpy(prefixes, newprefixes, sizeof(prefixes)); + strcpy(prefixes, newprefixes); } void prefix_del(char *prefixes, char oldprefix)