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