aboutsummaryrefslogtreecommitdiffstats
path: root/editcap.c
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2012-03-13 14:11:08 +0000
committerAnders Broman <anders.broman@ericsson.com>2012-03-13 14:11:08 +0000
commit7605b0148272a223a8c30a0776b56518e64bf632 (patch)
treee000366dfb2ddd2bf0967917b472c6b3bfb4e1c7 /editcap.c
parent9e1c8e6b34a7e1af0ee99cd02a9129bc794af129 (diff)
From Jose Pedro Oliveira:
the shb_userappl value wasn't being changed. https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6937 svn path=/trunk/; revision=41530
Diffstat (limited to 'editcap.c')
-rw-r--r--editcap.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/editcap.c b/editcap.c
index b714f5a6e8..3d75f4281b 100644
--- a/editcap.c
+++ b/editcap.c
@@ -1147,8 +1147,10 @@ main(int argc, char *argv[])
filename = g_strdup(argv[optind+1]);
/* If we don't have an application name add Editcap */
- if(shb_hdr->shb_user_appl == NULL)
+ if(shb_hdr->shb_user_appl == NULL) {
g_snprintf(appname, sizeof(appname), "Editcap " VERSION);
+ shb_hdr->shb_user_appl = appname;
+ }
pdh = wtap_dump_open_ng(filename, out_file_type, out_frame_type,
snaplen ? MIN(snaplen, wtap_snapshot_length(wth)) : wtap_snapshot_length(wth),