Commit e27f0bc9 by David Malcolm Committed by David Malcolm

Fix selftest::temp_source_file ctor

gcc/ChangeLog:
	* input.c (selftest::temp_source_file::temp_source_file): Fix
	missing "%s" in fprintf.

From-SVN: r238732
parent fd8b207a
2016-07-25 David Malcolm <dmalcolm@redhat.com>
* input.c (selftest::temp_source_file::temp_source_file): Fix
missing "%s" in fprintf.
2016-07-25 John David Anglin <danglin@gcc.gnu.org> 2016-07-25 John David Anglin <danglin@gcc.gnu.org>
PR middle-end/71732 PR middle-end/71732
......
...@@ -1175,7 +1175,7 @@ temp_source_file::temp_source_file (const location &loc, const char *suffix, ...@@ -1175,7 +1175,7 @@ temp_source_file::temp_source_file (const location &loc, const char *suffix,
if (!out) if (!out)
::selftest::fail_formatted (loc, "unable to open tempfile: %s", ::selftest::fail_formatted (loc, "unable to open tempfile: %s",
m_filename); m_filename);
fprintf (out, content); fprintf (out, "%s", content);
fclose (out); fclose (out);
} }
......
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