Get rid of a Clist and move the functon to display floats with two decimals to gui_utils.
[metze/wireshark/wip.git] / tap-camelsrt.c
index 19bfbabc448324aea89e3c537bb86c05261ce759..94e88a77b2f23992ec86d2e4607cfbda4d9c60dd 100644 (file)
@@ -2,6 +2,8 @@
  * CAMEL Service Response Time statistics for tshark
  * Copyright 2006 Florent Drouin (based on tap_h225rassrt.c from Lars Roland)
  *
+ * $Id$
+ *
  * Wireshark - Network traffic analyzer
  * By Gerald Combs <gerald@wireshark.org>
  * Copyright 1998 Gerald Combs
@@ -222,8 +224,7 @@ static void camelsrt_init(const char *optarg, void* userdata _U_)
 
   p_camelsrt = g_malloc(sizeof(struct camelsrt_t));
   if(filter){
-    p_camelsrt->filter=g_malloc(strlen(filter)+1);
-    strcpy(p_camelsrt->filter,filter);
+    p_camelsrt->filter=g_strdup(filter);
   } else {
     p_camelsrt->filter=NULL;
   }