diff options
author | João Valverde <j@v6e.pt> | 2021-12-18 18:48:20 +0000 |
---|---|---|
committer | João Valverde <j@v6e.pt> | 2021-12-19 21:21:58 +0000 |
commit | 0ccd69e530ed18ac19a4484c76bdbef94d1ab2b1 (patch) | |
tree | ffb5f202b47fbead8ff87e573afd72c856c91ae0 /capture/capture-wpcap.c | |
parent | f984def50cfb20c5a47f7ac41b7b72bd270f2bb7 (diff) |
Replace g_strdup_printf() with ws_strdup_printf()
Use macros from inttypes.h.
Diffstat (limited to 'capture/capture-wpcap.c')
-rw-r--r-- | capture/capture-wpcap.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/capture/capture-wpcap.c b/capture/capture-wpcap.c index a6a9797f28..d92a670f95 100644 --- a/capture/capture-wpcap.c +++ b/capture/capture-wpcap.c @@ -270,7 +270,7 @@ convert_errbuf_to_utf8(char *errbuf) static char * cant_load_winpcap_err(const char *app_name) { - return g_strdup_printf( + return ws_strdup_printf( "Unable to load Npcap or WinPcap (wpcap.dll); %s will not be able to\n" "capture packets.\n" "\n" @@ -771,12 +771,12 @@ cant_get_if_list_error_message(const char *err_str) */ if (strstr(err_str, "Not enough storage is available to process this command") != NULL || strstr(err_str, "The operation completed successfully") != NULL) { - return g_strdup_printf("Can't get list of interfaces: %s\n" + return ws_strdup_printf("Can't get list of interfaces: %s\n" "This might be a problem with WinPcap 3.0. You should try updating to\n" "Npcap. See https://nmap.org/npcap/ for more information.", err_str); } - return g_strdup_printf("Can't get list of interfaces: %s", err_str); + return ws_strdup_printf("Can't get list of interfaces: %s", err_str); } if_capabilities_t * |