diff options
author | gerald <gerald@f5534014-38df-0310-8fa8-9805f1628bb7> | 2003-05-24 19:51:48 +0000 |
---|---|---|
committer | gerald <gerald@f5534014-38df-0310-8fa8-9805f1628bb7> | 2003-05-24 19:51:48 +0000 |
commit | 3622bbe5dfcd7670728724a5fa7aedd93a265be5 (patch) | |
tree | c1bd8a99cf71146a18f12e7422030ab68e42603c /packet-rmi.c | |
parent | a67f5b2f3e9565bcd89029b41280c7570eac1b2c (diff) |
Fix more string-related nits found by Timo Sirainen/
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@7732 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-rmi.c')
-rw-r--r-- | packet-rmi.c | 3 |
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); |