Fix compilation with -Werror=format-security.

This commit is contained in:
Martin Whitaker 2022-12-31 16:51:28 +00:00
parent 0958621ad1
commit 23e51ef7a8
1 changed files with 1 additions and 1 deletions

View File

@ -62,7 +62,7 @@ void pform_end_package_declaration(const struct vlltype&loc)
ostringstream msg;
msg << "error: Package " << use_name << " was already declared here: "
<< test->second->get_fileline() << ends;
VLerror(loc, msg.str().c_str());
VLerror(loc, "%s", msg.str().c_str());
}