summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJilles Tjoelker <jilles@irssi.org>2008-12-12 22:04:37 +0000
committerjilles <jilles@dbcabf3a-b0e7-0310-adc4-f8d773084564>2008-12-12 22:04:37 +0000
commit251d956ddc7858b6a5ee0d12962b696968a731a7 (patch)
tree01bc149d98eef21695156fa6133f684bf5ee3631 /src
parent8c510be0a66cf1f6115046db9eb96eaa9d2f91f0 (diff)
downloadirssi-251d956ddc7858b6a5ee0d12962b696968a731a7.zip
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
Diffstat (limited to 'src')
-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)