summaryrefslogtreecommitdiff
path: root/src/irc/core/modes.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/irc/core/modes.c')
-rw-r--r--src/irc/core/modes.c2
1 files changed, 1 insertions, 1 deletions
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)