diff options
author | Guy Harris <guy@alum.mit.edu> | 2019-05-01 11:57:46 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2019-05-01 19:42:23 +0000 |
commit | f0a34311a063356a6c3b5924267ceca1b09d2d8c (patch) | |
tree | bbd29246cdd8dedac2a21b73068b9970452b0ea2 /dumpcap.c | |
parent | 163d01b26c547f784703b3b10d45b2276f001281 (diff) |
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 <guy@alum.mit.edu>
Tested-by: Petri Dish Buildbot
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'dumpcap.c')
-rw-r--r-- | dumpcap.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 |