Fix selftest::temp_source_file ctor
authorDavid Malcolm <dmalcolm@redhat.com>
Mon, 25 Jul 2016 19:15:22 +0000 (19:15 +0000)
committerDavid Malcolm <dmalcolm@gcc.gnu.org>
Mon, 25 Jul 2016 19:15:22 +0000 (19:15 +0000)
gcc/ChangeLog:
* input.c (selftest::temp_source_file::temp_source_file): Fix
missing "%s" in fprintf.

From-SVN: r238732

gcc/ChangeLog
gcc/input.c

index 97a9ab094fc71f8cee81bc6e7bc5f9a3bd021a53..03f8af79332c54b88cffb3fb8ec8db8ca25f5e82 100644 (file)
@@ -1,3 +1,8 @@
+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>
 
        PR middle-end/71732
index a916597a78c35423f91074bf7133620ece455287..47845d000705953b94144df6a83fe4d7ca14a5d9 100644 (file)
@@ -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);
 }