1
0
mirror of https://github.com/irssi/irssi.git synced 2024-11-03 04:27:19 -05:00

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
This commit is contained in:
Jilles Tjoelker 2008-12-12 22:04:37 +00:00 committed by jilles
parent 8c510be0a6
commit 251d956ddc

View File

@ -98,7 +98,7 @@ void prefix_add(char *prefixes, char newprefix, SERVER_REC *server)
newprefixes[newpos] = '\0'; newprefixes[newpos] = '\0';
memcpy(prefixes, newprefixes, sizeof(prefixes)); strcpy(prefixes, newprefixes);
} }
void prefix_del(char *prefixes, char oldprefix) void prefix_del(char *prefixes, char oldprefix)