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 /tshark.c | |
parent | f984def50cfb20c5a47f7ac41b7b72bd270f2bb7 (diff) |
Replace g_strdup_printf() with ws_strdup_printf()
Use macros from inttypes.h.
Diffstat (limited to 'tshark.c')
-rw-r--r-- | tshark.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -2057,7 +2057,7 @@ main(int argc, char *argv[]) /* Activate the export PDU tap */ /* Write to our output file with this comment (if the type supports it, * otherwise exp_pdu_open() will ignore the comment) */ - comment = g_strdup_printf("Dump of PDUs from %s", cf_name); + comment = ws_strdup_printf("Dump of PDUs from %s", cf_name); exp_pdu_status = exp_pdu_open(&exp_pdu_tap_data, exp_pdu_filename, out_file_type, exp_fd, comment, &err, &err_info); @@ -2194,7 +2194,7 @@ main(int argc, char *argv[]) interface_opts = &g_array_index(global_capture_opts.ifaces, interface_options, i); #ifdef HAVE_PCAP_REMOTE if (interface_opts->auth_type == CAPTURE_AUTH_PWD) { - auth_str = g_strdup_printf("%s:%s", interface_opts->auth_username, interface_opts->auth_password); + auth_str = ws_strdup_printf("%s:%s", interface_opts->auth_username, interface_opts->auth_password); } #endif caps = capture_get_if_capabilities(interface_opts->name, interface_opts->monitor_mode, |