Bugfix in Verilog string handling
Signed-off-by: Clifford Wolf <clifford@clifford.at>
This commit is contained in:
@@ -274,7 +274,7 @@ YOSYS_NAMESPACE_END
|
||||
yystr[j++] = yystr[i++];
|
||||
}
|
||||
yystr[j] = 0;
|
||||
frontend_verilog_yylval.string = new std::string(yystr);
|
||||
frontend_verilog_yylval.string = new std::string(yystr, j);
|
||||
free(yystr);
|
||||
return TOK_STRING;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user