From: dmalcolm Date: Mon, 25 Jul 2016 19:15:22 +0000 (+0000) Subject: Fix selftest::temp_source_file ctor X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=92634d0426c58b85f65b68961dfecb25cb5d5926;p=thirdparty%2Fgcc.git Fix selftest::temp_source_file ctor gcc/ChangeLog: * input.c (selftest::temp_source_file::temp_source_file): Fix missing "%s" in fprintf. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@238732 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 97a9ab094fc7..03f8af79332c 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 a916597a78c3..47845d000705 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); }