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>
This commit is contained in:
parent
163d01b26c
commit
f0a34311a0
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue