diff --git a/gdb/ChangeLog b/gdb/ChangeLog index de1945aec9..19882f0447 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2017-09-05 Simon Marchi + + * expprint.c (dump_subexp_body_standard): Use constant format + string in fprintf_filtered call. + 2017-09-04 John Baldwin * configure.nat: Add "x86-nat.o x86-dregs.o" for NetBSD/amd64 and diff --git a/gdb/expprint.c b/gdb/expprint.c index 2c16b497fc..9e04f247b6 100644 --- a/gdb/expprint.c +++ b/gdb/expprint.c @@ -1052,7 +1052,7 @@ dump_subexp_body_standard (struct expression *exp, if (space) fputs_filtered (" ", stream); space = true; - fprintf_filtered (stream, mod); + fprintf_filtered (stream, "%s", mod); }; if (flags & TYPE_INSTANCE_FLAG_CONST) print_one ("const");