From f0a34311a063356a6c3b5924267ceca1b09d2d8c Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Wed, 1 May 2019 11:57:46 -0700 Subject: Don't use the result of please_report_bug() as a format string. It prevents format checking; use "%s" as the format string. Change-Id: Ic05ed64f4b2b6c243f072b0b306e0e06aa1eb3fd Reviewed-on: https://code.wireshark.org/review/33041 Petri-Dish: Guy Harris Tested-by: Petri Dish Buildbot Reviewed-by: Guy Harris --- dumpcap.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'dumpcap.c') diff --git a/dumpcap.c b/dumpcap.c index 5e1a7f32e7..05d40b5989 100644 --- a/dumpcap.c +++ b/dumpcap.c @@ -2771,7 +2771,8 @@ capture_loop_open_input(capture_options *capture_opts, loop_data *ld, "Couldn't initialize Windows Sockets: error %d", err); break; } - g_snprintf(secondary_errmsg, (gulong) secondary_errmsg_len, please_report_bug()); + g_snprintf(secondary_errmsg, (gulong) secondary_errmsg_len, "%s", + please_report_bug()); return FALSE; } #endif -- cgit v1.2.3