aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--gtk/hostlist_ncp.c7
-rw-r--r--gtk/sctp_chunk_stat.c4
2 files changed, 6 insertions, 5 deletions
diff --git a/gtk/hostlist_ncp.c b/gtk/hostlist_ncp.c
index 5bf2f3dc68..debb488461 100644
--- a/gtk/hostlist_ncp.c
+++ b/gtk/hostlist_ncp.c
@@ -1,7 +1,8 @@
/* hostlist_ncp.c 2006 Greg Morris
* modified from endpoint_talkers_eth.c 2003 Ronnie Sahlberg
*
- * $Id: hostlist_ncp.c
+ * $Id$
+ *
* Wireshark - Network traffic analyzer
* By Gerald Combs <gerald@wireshark.org>
* Copyright 1998 Gerald Combs
@@ -61,8 +62,8 @@ gtk_ncp_hostlist_init(const char *optarg, void* userdata _U_)
{
const char *filter=NULL;
- if(!strncmp(optarg,"hosts,ncp,",11)){
- filter=optarg+11;
+ if(!strncmp(optarg,"hosts,ncp,",10)){
+ filter=optarg+10;
} else {
filter=NULL;
}
diff --git a/gtk/sctp_chunk_stat.c b/gtk/sctp_chunk_stat.c
index b95c9903a7..0e8c2542a2 100644
--- a/gtk/sctp_chunk_stat.c
+++ b/gtk/sctp_chunk_stat.c
@@ -287,8 +287,8 @@ sctpstat_init(const char *optarg, void *userdata _U_)
GtkWidget *bbox;
GtkWidget *close_bt;
- if(strncmp(optarg,"sctp,stat,",11) == 0){
- filter=optarg+11;
+ if(strncmp(optarg,"sctp,stat,",10) == 0){
+ filter=optarg+10;
} else {
filter="";
}