ircd_lexer: fix another crash with the same cause
This commit is contained in:
parent
401cb2bb17
commit
d539f22782
2 changed files with 3 additions and 3 deletions
|
@ -94,7 +94,7 @@ include \.include{ws}(\<.*\>|\".*\")
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
strcpy(yylval.string, yytext + 1);
|
rb_strlcpy(yylval.string, yytext + 1, 1024);
|
||||||
if(yylval.string[yyleng-2] != '"')
|
if(yylval.string[yyleng-2] != '"')
|
||||||
ilog(L_MAIN, "Unterminated character string");
|
ilog(L_MAIN, "Unterminated character string");
|
||||||
else
|
else
|
||||||
|
@ -134,7 +134,7 @@ include \.include{ws}(\<.*\>|\".*\")
|
||||||
|
|
||||||
loadmodule { return LOADMODULE; }
|
loadmodule { return LOADMODULE; }
|
||||||
{string} {
|
{string} {
|
||||||
strcpy(yylval.string, yytext);
|
rb_strlcpy(yylval.string, yytext, 1024);
|
||||||
yylval.string[yyleng] = '\0';
|
yylval.string[yyleng] = '\0';
|
||||||
return STRING;
|
return STRING;
|
||||||
}
|
}
|
||||||
|
|
|
@ -160,7 +160,7 @@ static void add_cur_list(int type, char *str, int number)
|
||||||
|
|
||||||
%union {
|
%union {
|
||||||
int number;
|
int number;
|
||||||
char string[BUFSIZE + 1];
|
char string[1024];
|
||||||
conf_parm_t * conf_parm;
|
conf_parm_t * conf_parm;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue