diff options
author | Guy Harris <guy@alum.mit.edu> | 2005-01-15 10:39:49 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2005-01-15 10:39:49 +0000 |
commit | 6775bd55576fa22bfd6f6c45527c13114f6def00 (patch) | |
tree | 2dc26ce0619ff668fdb3cf8e648776a69667238d /plugins | |
parent | fef9c4529668bb5d17e0578d5866054ab7b75a98 (diff) | |
download | wireshark-6775bd55576fa22bfd6f6c45527c13114f6def00.tar.gz wireshark-6775bd55576fa22bfd6f6c45527c13114f6def00.tar.bz2 wireshark-6775bd55576fa22bfd6f6c45527c13114f6def00.zip |
Use -1 as a length value for "to the end of the tvbuff".
svn path=/trunk/; revision=13046
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/giop/packet-coseventcomm.c | 2 | ||||
-rw-r--r-- | plugins/giop/packet-cosnaming.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/plugins/giop/packet-coseventcomm.c b/plugins/giop/packet-coseventcomm.c index fe622cb3ca..6b8e259e1b 100644 --- a/plugins/giop/packet-coseventcomm.c +++ b/plugins/giop/packet-coseventcomm.c @@ -686,7 +686,7 @@ static gboolean dissect_coseventcomm(tvbuff_t *tvb, packet_info *pinfo, proto_tr */ if (ptree) { - ti = proto_tree_add_item(ptree, proto_coseventcomm, tvb, *offset, tvb_length(tvb) - *offset, FALSE); + ti = proto_tree_add_item(ptree, proto_coseventcomm, tvb, *offset, -1, FALSE); tree = proto_item_add_subtree(ti, ett_coseventcomm); } diff --git a/plugins/giop/packet-cosnaming.c b/plugins/giop/packet-cosnaming.c index bdbcd01381..87c3982c70 100644 --- a/plugins/giop/packet-cosnaming.c +++ b/plugins/giop/packet-cosnaming.c @@ -1554,7 +1554,7 @@ static gboolean dissect_cosnaming(tvbuff_t *tvb, packet_info *pinfo, proto_tree */ if (ptree) { - ti = proto_tree_add_item(ptree, proto_cosnaming, tvb, *offset, tvb_length(tvb) - *offset, FALSE); + ti = proto_tree_add_item(ptree, proto_cosnaming, tvb, *offset, -1, FALSE); tree = proto_item_add_subtree(ti, ett_cosnaming); } |