From e27f0bc9ca3e9d9266eb299ee6a27daef5c1e0b6 Mon Sep 17 00:00:00 2001 From: David Malcolm Date: Mon, 25 Jul 2016 19:15:22 +0000 Subject: [PATCH] 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 --- gcc/ChangeLog | 5 +++++ gcc/input.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 97a9ab094fc..03f8af79332 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2016-07-25 David Malcolm + + * input.c (selftest::temp_source_file::temp_source_file): Fix + missing "%s" in fprintf. + 2016-07-25 John David Anglin PR middle-end/71732 diff --git a/gcc/input.c b/gcc/input.c index a916597a78c..47845d00070 100644 --- a/gcc/input.c +++ b/gcc/input.c @@ -1175,7 +1175,7 @@ temp_source_file::temp_source_file (const location &loc, const char *suffix, if (!out) ::selftest::fail_formatted (loc, "unable to open tempfile: %s", m_filename); - fprintf (out, content); + fprintf (out, "%s", content); fclose (out); } -- 2.30.2