Bugfix in Verilog string handling

Signed-off-by: Clifford Wolf <[email protected]>
This commit is contained in:
Clifford Wolf
2019-01-05 12:10:24 +01:00
parent e041ae3c6d
commit 17ceab92a9
+1 -1
View File
@@ -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;
}