aboutsummaryrefslogtreecommitdiffstats
path: root/packet-ieee80211.c
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2003-05-25 19:37:36 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2003-05-25 19:37:36 +0000
commitffda0d01c4f201db5b52054eda8091c2aac44aa0 (patch)
tree437ad1c40d445c37cbd3be647108478d78b735bb /packet-ieee80211.c
parent98294741b0b27388259cecf59eff2a17c3ce03b5 (diff)
The last byte of "foo[N]" is "foo[N-1]", not "foo[N]".
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@7740 f5534014-38df-0310-8fa8-9805f1628bb7
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;