aboutsummaryrefslogtreecommitdiffstats
path: root/packet-rmi.c
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2003-05-24 19:51:48 +0000
committerGerald Combs <gerald@wireshark.org>2003-05-24 19:51:48 +0000
commitdcc9976c1331ed55c0aa9179bbdcc08b5181fd47 (patch)
treec1bd8a99cf71146a18f12e7422030ab68e42603c /packet-rmi.c
parent356ddbd284075257edda1b7a8c77fe9539f817b5 (diff)
Fix more string-related nits found by Timo Sirainen/
svn path=/trunk/; revision=7732
Diffstat (limited to 'packet-rmi.c')
-rw-r--r--packet-rmi.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/packet-rmi.c b/packet-rmi.c
index ed2474de1f..cbcb2b9f86 100644
--- a/packet-rmi.c
+++ b/packet-rmi.c
@@ -2,7 +2,7 @@
* Routines for java rmiregistry dissection
* Copyright 2002, Michael Stiller <ms@2scale.net>
*
- * $Id: packet-rmi.c,v 1.7 2003/03/09 03:19:03 jmayer Exp $
+ * $Id: packet-rmi.c,v 1.8 2003/05/24 19:51:48 gerald Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -210,6 +210,7 @@ dissect_rmi(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
strncpy(epid_hostname,
"<string too long>", sizeof(epid_hostname));
}
+ epid_hostname[sizeof(epid_hostname)] = '\0';
proto_tree_add_string(rmi_tree, hf_rmi_epid_hostname,
tvb, offset + 3, strlen(epid_hostname),
epid_hostname);