ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
July 17th, 2024 | 10:00am-11:55am SGT (UTC+8) | Online

Ethereal-dev: [Ethereal-dev] Patch for -R command line handling

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Joerg Mayer <jmayer@xxxxxxxxx>
Date: Tue, 8 May 2001 21:44:49 +0200
attched patch fixes what I assume to be a bug in the handling of the
-R command line argument in both ethereal and thethereal.

  Ciao
    J�rg
-- 
Joerg Mayer                                          <jmayer@xxxxxxxxx>
I found out that "pro" means "instead of" (as in proconsul). Now I know
what proactive means.
Index: ethereal/tethereal.c
===================================================================
RCS file: /cvsroot/ethereal/tethereal.c,v
retrieving revision 1.82
diff -u -u -r1.82 tethereal.c
--- tethereal.c	2001/04/20 21:50:06	1.82
+++ tethereal.c	2001/05/08 00:37:31
@@ -446,7 +468,7 @@
         cf_name = g_strdup(optarg);
         break;
       case 'R':        /* Read file filter */
-        rfilter = optarg;
+        rfilter = g_strdup(optarg);
         break;
       case 's':        /* Set the snapshot (capture) length */
 #ifdef HAVE_LIBPCAP
Index: ethereal/gtk/main.c
===================================================================
RCS file: /cvsroot/ethereal/gtk/main.c,v
retrieving revision 1.198
diff -u -u -r1.198 main.c
--- main.c	2001/05/01 00:41:46	1.198
+++ main.c	2001/05/08 00:37:36
@@ -1079,7 +1079,7 @@
         cf_name = g_strdup(optarg);
         break;
       case 'R':        /* Read file filter */
-        rfilter = optarg;
+        rfilter = g_strdup(optarg);
         break;
       case 's':        /* Set the snapshot (capture) length */
 #ifdef HAVE_LIBPCAP