From 251d956ddc7858b6a5ee0d12962b696968a731a7 Mon Sep 17 00:00:00 2001 From: Jilles Tjoelker Date: Fri, 12 Dec 2008 22:04:37 +0000 Subject: prefix_add(): copy correct number of bytes git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4967 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/irc/core/modes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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) -- cgit v1.2.3