diff options
author | Gerald Combs <gerald@wireshark.org> | 2008-12-19 17:39:52 +0000 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2008-12-19 17:39:52 +0000 |
commit | 6d04f793f019b456f8d8c81f231152fbba24da8b (patch) | |
tree | 647f2501114c1f15b0c01fc84cbb6cdad96a3580 /epan/dissectors/packet-dcp-etsi.c | |
parent | 8e53f726885fe5ce2ae8422867299d2da09518cc (diff) |
Back out r27047 and r27053.
svn path=/trunk/; revision=27062
Diffstat (limited to 'epan/dissectors/packet-dcp-etsi.c')
-rw-r--r-- | epan/dissectors/packet-dcp-etsi.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/epan/dissectors/packet-dcp-etsi.c b/epan/dissectors/packet-dcp-etsi.c index 7e6c28b9fb..b1cbff4900 100644 --- a/epan/dissectors/packet-dcp-etsi.c +++ b/epan/dissectors/packet-dcp-etsi.c @@ -650,15 +650,16 @@ dissect_tpl(tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree) bytes++; if(tree) { proto_item *i = NULL; + const guint8 *p = tvb_get_ptr(tvb, offset, bytes); if(strcmp(tag, "*ptr")==0) { prot = (char*)tvb_get_ephemeral_string (tvb, offset, 4); maj = tvb_get_ntohs(tvb, offset+4); min = tvb_get_ntohs(tvb, offset+6); i = proto_tree_add_bytes_format(tpl_tree, hf_tpl_tlv, tvb, - offset-8, bytes+8, "%s %s rev %d.%d", tag, prot, maj, min); + offset-8, bytes+8, p, "%s %s rev %d.%d", tag, prot, maj, min); } else { i = proto_tree_add_bytes_format(tpl_tree, hf_tpl_tlv, tvb, - offset-8, bytes+8, "%s (%u bits)", tag, bits); + offset-8, bytes+8, p, "%s (%u bits)", tag, bits); } } offset += bytes; |