aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorMichael Mann <mmann78@netscape.net>2013-10-23 15:31:48 +0000
committerMichael Mann <mmann78@netscape.net>2013-10-23 15:31:48 +0000
commit36e13a4c55a5080ae504691c8062f359c3c8668f (patch)
treefa4d5a37b86fca39ef830c568473791cb1fc93e3 /ui
parentbe86384b34b8ea02963a335ea05ac186c3eb4b87 (diff)
Bugfix "Restart the running live capture" when using multiple files makes a long filename. Bug 2274 (https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=2274)
Yes this solution leaks memory, but I think the handful of bytes leaked is worth fixing this nuisance. Won't backport until leak is fixed though. svn path=/trunk/; revision=52793
Diffstat (limited to 'ui')
-rw-r--r--ui/gtk/capture_dlg.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ui/gtk/capture_dlg.c b/ui/gtk/capture_dlg.c
index 9f2616f734..34845c3827 100644
--- a/ui/gtk/capture_dlg.c
+++ b/ui/gtk/capture_dlg.c
@@ -5515,6 +5515,7 @@ capture_dlg_prep(gpointer parent_w) {
if (g_save_file && g_save_file[0]) {
/* User specified a file to which the capture should be written. */
global_capture_opts.save_file = g_strdup(g_save_file);
+ global_capture_opts.orig_save_file = g_strdup(g_save_file);
/* Save the directory name for future file dialogs. */
cf_name = g_strdup(g_save_file);
dirname = get_dirname(cf_name); /* Overwrites cf_name */