0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-07-05 01:58:35 +02:00

Ensure the parser/lexer don't use IRCD_BUFSIZE.

This commit is contained in:
Elizabeth Myers 2016-03-23 09:25:56 -05:00
parent 82236a2a65
commit 7ac3261f97
2 changed files with 4 additions and 4 deletions

View file

@ -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");

View file

@ -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;
}