diff options
author | Evan Huus <eapache@gmail.com> | 2014-09-22 16:53:02 -0400 |
---|---|---|
committer | Evan Huus <eapache@gmail.com> | 2014-09-22 20:53:44 +0000 |
commit | df35a959c4c49b22e9ee23ed035b1b83eedad22d (patch) | |
tree | 27ae4a378281fd9edc2de9d19e46fe60e5a5afed /editcap.c | |
parent | 1db95f7e4d8a308eef3d0807ae05c0192a0e0c74 (diff) | |
download | wireshark-df35a959c4c49b22e9ee23ed035b1b83eedad22d.tar.gz wireshark-df35a959c4c49b22e9ee23ed035b1b83eedad22d.tar.bz2 wireshark-df35a959c4c49b22e9ee23ed035b1b83eedad22d.zip |
Ensure pcapng application name is always dynamically allocated
Change-Id: I408944dfb0fa35bae6019ed0d6d810525b2ffcae
Reviewed-on: https://code.wireshark.org/review/4254
Reviewed-by: Evan Huus <eapache@gmail.com>
Diffstat (limited to 'editcap.c')
-rw-r--r-- | editcap.c | 2 |
1 files changed, 1 insertions, 1 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, |