diff options
Diffstat (limited to 'caputils/capture-pcap-util.c')
-rw-r--r-- | caputils/capture-pcap-util.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/caputils/capture-pcap-util.c b/caputils/capture-pcap-util.c index 0eedf71bf9..74f5b1ce03 100644 --- a/caputils/capture-pcap-util.c +++ b/caputils/capture-pcap-util.c @@ -67,6 +67,7 @@ #include "log.h" #include <wsutil/file_util.h> +#include <wsutil/please_report_bug.h> #ifndef _WIN32 #include <netinet/in.h> @@ -86,14 +87,6 @@ #endif /* - * Standard secondary message for unexpected errors. - */ -static const char please_report[] = - "Please report this to the Wireshark developers.\n" - "https://bugs.wireshark.org/\n" - "(This is not a crash; please do not report it as such.)"; - -/* * Given an interface name, find the "friendly name" and interface * type for the interface. */ @@ -977,7 +970,8 @@ set_pcap_datalink(pcap_t *pcap_h, int datalink, char *name, * tell the user to tell the Wireshark developers about it. */ if (strstr(set_datalink_err_str, "is not one of the DLTs supported by this device") == NULL) - g_snprintf(secondary_errmsg, (gulong) secondary_errmsg_len, please_report); + g_snprintf(secondary_errmsg, (gulong) secondary_errmsg_len, + "%s", please_report_bug()); else secondary_errmsg[0] = '\0'; return FALSE; |