mirror of
https://github.com/matrix-construct/construct
synced 2024-11-29 18:22:50 +01:00
Ensure the parser/lexer don't use IRCD_BUFSIZE.
This commit is contained in:
parent
82236a2a65
commit
7ac3261f97
2 changed files with 4 additions and 4 deletions
|
@ -53,8 +53,8 @@ void cinclude(void);
|
|||
void hashcomment(void);
|
||||
int ieof(void);
|
||||
int lineno_stack[MAX_INCLUDE_DEPTH];
|
||||
char conffile_stack[MAX_INCLUDE_DEPTH][IRCD_BUFSIZE];
|
||||
char conffilebuf[IRCD_BUFSIZE+1];
|
||||
char conffile_stack[MAX_INCLUDE_DEPTH][BUFSIZE];
|
||||
char conffilebuf[BUFSIZE+1];
|
||||
char *current_file = conffilebuf;
|
||||
|
||||
FILE *inc_fbfile_in[MAX_INCLUDE_DEPTH];
|
||||
|
@ -195,7 +195,7 @@ void cinclude(void)
|
|||
if (tmp_fbfile_in == NULL)
|
||||
{
|
||||
/* if its not found in PREFIX, look in ETCPATH */
|
||||
char fnamebuf[IRCD_BUFSIZE];
|
||||
char fnamebuf[BUFSIZE];
|
||||
|
||||
snprintf(fnamebuf, sizeof(fnamebuf), "%s/%s", ETCPATH, c);
|
||||
tmp_fbfile_in = fopen(fnamebuf, "r");
|
||||
|
|
|
@ -161,7 +161,7 @@ static void add_cur_list(int type, char *str, int number)
|
|||
|
||||
%union {
|
||||
int number;
|
||||
char string[IRCD_BUFSIZE + 1];
|
||||
char string[BUFSIZE + 1];
|
||||
conf_parm_t * conf_parm;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue