aboutsummaryrefslogtreecommitdiffstats
path: root/packet-ip.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>1999-08-05 00:02:55 +0000
committerGuy Harris <guy@alum.mit.edu>1999-08-05 00:02:55 +0000
commit50dbd34d6d8243dd210b1c6ff1d4a7a7b964a678 (patch)
tree873f8e9b8afa265ae0b66c63cb356349b87a8697 /packet-ip.c
parent41a8a32b7baa909fc43ea2faccd201cd00b6b518 (diff)
Fix a "proto_tree_add_text()" call that should've been a
"proto_tree_add_item()" call (and fix the length passed to it, which, it appears, has been wrong for ages). svn path=/trunk/; revision=439
Diffstat (limited to 'packet-ip.c')
-rw-r--r--packet-ip.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/packet-ip.c b/packet-ip.c
index 82a200fad5..a800abdd58 100644
--- a/packet-ip.c
+++ b/packet-ip.c
@@ -1,7 +1,7 @@
/* packet-ip.c
* Routines for IP and miscellaneous IP protocol packet disassembly
*
- * $Id: packet-ip.c,v 1.32 1999/07/31 11:21:05 deniel Exp $
+ * $Id: packet-ip.c,v 1.33 1999/08/05 00:02:55 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -1061,7 +1061,7 @@ dissect_igmp(const u_char *pd, int offset, frame_data *fd, proto_tree *tree) {
if (check_col(fd, COL_INFO))
col_add_str(fd, COL_INFO, type_str);
if (tree) {
- ti = proto_tree_add_text(tree, proto_igmp, offset, 4, NULL);
+ ti = proto_tree_add_item(tree, proto_igmp, offset, 8, NULL);
igmp_tree = proto_item_add_subtree(ti, ETT_IGMP);
proto_tree_add_text(igmp_tree, offset, 1, "Version: %d",
hi_nibble(ih.igmp_v_t));