mirror of
https://github.com/YosysHQ/yosys.git
synced 2026-09-07 04:19:56 +02:00
Bugfix in Verilog string handling
Signed-off-by: Clifford Wolf <[email protected]>
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