Commit 97eb9cf9 authored by David Gobbi's avatar David Gobbi

COMP: regex for string literals wasn't allowing empty strings

parent 910a5aa3
This diff is collapsed.
......@@ -305,7 +305,7 @@ Modify lex.yy.c:
return(INT_LITERAL);
}
\"([^\"]|\\\")+\" {
\"([^\"]|\\\")*\" {
yylval.str = (char *)malloc(yyleng + 1);
memcpy(yylval.str,yytext,yyleng);
yylval.str[yyleng] = '\0';
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment