Make explicit how long the arrays for prefix_add and prefix_del are.

git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@5020 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Jilles Tjoelker 2009-02-21 17:55:12 +00:00 committed by jilles
commit 946e7784b0
2 changed files with 5 additions and 4 deletions

View file

@ -59,7 +59,7 @@ static void nick_mode_change(IRC_CHANNEL_REC *channel, const char *nick,
channel, nickrec, setby, modestr, typestr);
}
void prefix_add(char *prefixes, char newprefix, SERVER_REC *server)
void prefix_add(char prefixes[MAX_USER_PREFIXES+1], char newprefix, SERVER_REC *server)
{
const char *prefixlst;
char newprefixes[MAX_USER_PREFIXES+1]; /* to hold the new prefixes */
@ -101,7 +101,7 @@ void prefix_add(char *prefixes, char newprefix, SERVER_REC *server)
strcpy(prefixes, newprefixes);
}
void prefix_del(char *prefixes, char oldprefix)
void prefix_del(char prefixes[MAX_USER_PREFIXES+1], char oldprefix)
{
char *todel;