Fix for bug 3079:
[obnox/wireshark/wip.git] / tap-sctpchunkstat.c
index d27afa8391378cf7faef6c3d3c4b6d2f19516962..630d4f4c91fe1b134952f5e64b453fec457974d2 100644 (file)
@@ -1,11 +1,11 @@
 /* tap_sctpchunkstat.c
- * SCTP chunk counter for ethereal
+ * SCTP chunk counter for wireshark
  * Copyright 2005 Oleg Terletsky <oleg.terletsky@comverse.com>
  *
  * $Id$
  *
- * Ethereal - Network traffic analyzer
- * By Gerald Combs <gerald@ethereal.com>
+ * Wireshark - Network traffic analyzer
+ * By Gerald Combs <gerald@wireshark.org>
  * Copyright 1998 Gerald Combs
  *
  * This program is free software; you can redistribute it and/or
@@ -233,10 +233,9 @@ sctpstat_init(const char *optarg, void* userdata _U_)
        }
 
        hs = g_malloc(sizeof(sctpstat_t));
-       hs->filter=g_malloc(strlen(filter)+1);
+       hs->filter=g_strdup(filter);
        hs->ep_list = NULL;
        hs->number_of_packets = 0;
-       strcpy(hs->filter, filter);
 
        sctpstat_reset(hs);
 
@@ -246,7 +245,7 @@ sctpstat_init(const char *optarg, void* userdata _U_)
                g_free(hs->filter);
                g_free(hs);
 
-               fprintf(stderr, "tethereal: Couldn't register sctp,stat tap: %s\n",
+               fprintf(stderr, "tshark: Couldn't register sctp,stat tap: %s\n",
                    error_string->str);
                g_string_free(error_string, TRUE);
                exit(1);