aboutsummaryrefslogtreecommitdiffstats
path: root/file.c
diff options
context:
space:
mode:
authorEvan Huus <eapache@gmail.com>2014-09-22 16:55:32 -0400
committerEvan Huus <eapache@gmail.com>2014-09-22 20:56:19 +0000
commit02d50a54a84f192bc6a7f8ab068db54ea36a511c (patch)
tree450ba783d2a9b099a838aa253278beb7c8781b60 /file.c
parentdf35a959c4c49b22e9ee23ed035b1b83eedad22d (diff)
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>
Diffstat (limited to 'file.c')
-rw-r--r--file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/file.c b/file.c
index 7b937285d4..b73b598d7c 100644
--- a/file.c
+++ b/file.c
@@ -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 */