Ensure pcapng application name is dynamically allocated

I was hasty with my original fix...

Change-Id: I339994c1afc34274a5d73eff98c4ebbf030e0f36
Reviewed-on: https://code.wireshark.org/review/4255
Reviewed-by: Evan Huus <eapache@gmail.com>
This commit is contained in:
Evan Huus 2014-09-22 16:55:32 -04:00
parent df35a959c4
commit 02d50a54a8
1 changed files with 1 additions and 1 deletions

2
file.c
View File

@ -1363,7 +1363,7 @@ cf_merge_files(char **out_filenamep, int in_file_count,
/* 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 = "Wireshark"; /* NULL if not available, UTF-8 string containing the name */
shb_hdr->shb_user_appl = g_strdup("Wireshark"); /* NULL if not available, UTF-8 string containing the name */
/* of the application used to create this section. */
/* create fake IDB info */