aboutsummaryrefslogtreecommitdiffstats
path: root/packet-ieee80211.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2003-05-25 19:37:36 +0000
committerGuy Harris <guy@alum.mit.edu>2003-05-25 19:37:36 +0000
commit181be0366590a5a7af3962a7fd6308f8b7eed236 (patch)
tree437ad1c40d445c37cbd3be647108478d78b735bb /packet-ieee80211.c
parent75648fb8920dd7adcbd54fa49e3c0fdcc578b37b (diff)
The last byte of "foo[N]" is "foo[N-1]", not "foo[N]".
svn path=/trunk/; revision=7740
Diffstat (limited to 'packet-ieee80211.c')
-rw-r--r--packet-ieee80211.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/packet-ieee80211.c b/packet-ieee80211.c
index 512cd9467d..cdb576f525 100644
--- a/packet-ieee80211.c
+++ b/packet-ieee80211.c
@@ -3,7 +3,7 @@
* Copyright 2000, Axis Communications AB
* Inquiries/bugreports should be sent to Johan.Jorgensen@axis.com
*
- * $Id: packet-ieee80211.c,v 1.87 2003/05/24 17:45:10 gerald Exp $
+ * $Id: packet-ieee80211.c,v 1.88 2003/05/25 19:35:33 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -765,7 +765,7 @@ add_tagged_field (proto_tree * tree, tvbuff_t * tvb, int offset)
if (n < SHORT_STR)
snprintf (out_buff + n, SHORT_STR - n, "[Mbit/sec]");
- out_buff[SHORT_STR] = '\0';
+ out_buff[SHORT_STR-1] = '\0';
proto_tree_add_string (tree, tag_interpretation, tvb, offset + 2,
tag_len, out_buff);
break;