diff options
author | Guy Harris <guy@alum.mit.edu> | 2003-05-26 21:44:28 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2003-05-26 21:44:28 +0000 |
commit | 01a108e119cccf0399feea2c20c7ba4c915e51ee (patch) | |
tree | 43190486faf0766df880f9839ac2fa263f819983 /packet-rmi.c | |
parent | 870227fbfb8155aa97569f44d749911280fc3ed2 (diff) | |
download | wireshark-01a108e119cccf0399feea2c20c7ba4c915e51ee.tar.gz wireshark-01a108e119cccf0399feea2c20c7ba4c915e51ee.tar.bz2 wireshark-01a108e119cccf0399feea2c20c7ba4c915e51ee.zip |
The last byte of "foo[N]" is "foo[N-1]", not "foo[N]".
svn path=/trunk/; revision=7743
Diffstat (limited to 'packet-rmi.c')
-rw-r--r-- | packet-rmi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packet-rmi.c b/packet-rmi.c index cbcb2b9f86..f1d016bc69 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.8 2003/05/24 19:51:48 gerald Exp $ + * $Id: packet-rmi.c,v 1.9 2003/05/26 21:44:28 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -210,7 +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'; + epid_hostname[sizeof(epid_hostname)-1] = '\0'; proto_tree_add_string(rmi_tree, hf_rmi_epid_hostname, tvb, offset + 3, strlen(epid_hostname), epid_hostname); |