diff options
Diffstat (limited to 'src/packet-isi.c')
-rw-r--r-- | src/packet-isi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/packet-isi.c b/src/packet-isi.c index 0726227..6c11baa 100644 --- a/src/packet-isi.c +++ b/src/packet-isi.c @@ -474,8 +474,8 @@ void dissect_isi_subpacket(gint32 hf_sub_type, guint8 offset, tvbuff_t *tvb, guint8 sptype = tvb_get_guint8(tvb, offset+0x00); guint8 splen = tvb_get_guint8(tvb, offset+0x01); - proto_item *subitem = proto_tree_add_text(tree, tvb, offset, splen, "Subpacket #%d", i+1); - proto_tree *subtree = proto_item_add_subtree(subitem, ett_isi_msg); + proto_item *subitem; + proto_tree *subtree = proto_tree_add_subtree_format(tree, tvb, offset, splen, ett_isi_msg, &subitem, "Subpacket #%d", i+1); proto_tree_add_item(subtree, hf_sub_type, tvb, offset+0x00, 1, FALSE); proto_tree_add_item(subtree, hf_isi_sub_length, tvb, offset+0x01, 1, FALSE); |