diff options
-rw-r--r-- | editcap.c | 2 | ||||
-rw-r--r-- | mergecap.c | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -1308,7 +1308,7 @@ main(int argc, char *argv[]) /* If we don't have an application name add Editcap */ if (shb_hdr->shb_user_appl == NULL) { - shb_hdr->shb_user_appl = "Editcap " VERSION; + shb_hdr->shb_user_appl = g_strdup("Editcap " VERSION); } pdh = wtap_dump_open_ng(filename, out_file_type_subtype, out_frame_type, diff --git a/mergecap.c b/mergecap.c index 3e26f9c682..94c8661252 100644 --- a/mergecap.c +++ b/mergecap.c @@ -467,7 +467,7 @@ main(int argc, char *argv[]) shb_hdr->opt_comment = comment_gstr->str; /* NULL if not available */ shb_hdr->shb_hardware = NULL; /* NULL if not available, UTF-8 string containing the description of the hardware used to create this section. */ shb_hdr->shb_os = NULL; /* NULL if not available, UTF-8 string containing the name of the operating system used to create this section. */ - shb_hdr->shb_user_appl = "mergecap"; /* NULL if not available, UTF-8 string containing the name of the application used to create this section. */ + shb_hdr->shb_user_appl = g_strdup("mergecap"); /* NULL if not available, UTF-8 string containing the name of the application used to create this section. */ pdh = wtap_dump_fdopen_ng(out_fd, file_type, frame_type, snaplen, FALSE /* compressed */, shb_hdr, NULL /* wtapng_iface_descriptions_t *idb_inf */, &open_err); |