From: David Malcolm Date: Mon, 25 Jul 2016 19:15:22 +0000 (+0000) Subject: Fix selftest::temp_source_file ctor X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e27f0bc9ca3e9d9266eb299ee6a27daef5c1e0b6;p=gcc.git 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 --- 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); }