Files
sdcc/sdcc-4.6.0-format-security.patch

12 lines
404 B
Diff

--- a/support/cpp/gcc/diagnostic.cc
+++ b/support/cpp/gcc/diagnostic.cc
@@ -2254,7 +2254,7 @@
if (global_dc->printer == NULL)
{
/* Print the error message. */
- fnotice (stderr, diagnostic_kind_text[DK_ICE]);
+ fnotice (stderr, "%s", diagnostic_kind_text[DK_ICE]);
fnotice (stderr, "in %s, at %s:%d", function, trim_filename (file), line);
fputc ('\n', stderr);