mirror of
https://github.com/irssi/irssi.git
synced 2024-11-03 04:27:19 -05:00
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:
parent
145f566f19
commit
946e7784b0
@ -59,7 +59,7 @@ static void nick_mode_change(IRC_CHANNEL_REC *channel, const char *nick,
|
|||||||
channel, nickrec, setby, modestr, typestr);
|
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;
|
const char *prefixlst;
|
||||||
char newprefixes[MAX_USER_PREFIXES+1]; /* to hold the new prefixes */
|
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);
|
strcpy(prefixes, newprefixes);
|
||||||
}
|
}
|
||||||
|
|
||||||
void prefix_del(char *prefixes, char oldprefix)
|
void prefix_del(char prefixes[MAX_USER_PREFIXES+1], char oldprefix)
|
||||||
{
|
{
|
||||||
char *todel;
|
char *todel;
|
||||||
|
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
#define __MODES_H
|
#define __MODES_H
|
||||||
|
|
||||||
#include "irc-channels.h"
|
#include "irc-channels.h"
|
||||||
|
#include "nicklist.h" /* MAX_USER_PREFIXES */
|
||||||
|
|
||||||
typedef void mode_func_t(IRC_CHANNEL_REC *, const char *, char, char,
|
typedef void mode_func_t(IRC_CHANNEL_REC *, const char *, char, char,
|
||||||
char *, GString *);
|
char *, GString *);
|
||||||
@ -54,8 +55,8 @@ void channel_set_singlemode(IRC_CHANNEL_REC *channel, const char *nicks,
|
|||||||
void channel_set_mode(IRC_SERVER_REC *server, const char *channel,
|
void channel_set_mode(IRC_SERVER_REC *server, const char *channel,
|
||||||
const char *mode);
|
const char *mode);
|
||||||
|
|
||||||
void prefix_add(char *prefixes, char newprefix, SERVER_REC *server);
|
void prefix_add(char prefixes[MAX_USER_PREFIXES+1], char newprefix, SERVER_REC *server);
|
||||||
void prefix_del(char *prefixes, char oldprefix);
|
void prefix_del(char prefixes[MAX_USER_PREFIXES+1], char oldprefix);
|
||||||
|
|
||||||
mode_func_t modes_type_a;
|
mode_func_t modes_type_a;
|
||||||
mode_func_t modes_type_b;
|
mode_func_t modes_type_b;
|
||||||
|
Loading…
Reference in New Issue
Block a user