diff options
author | morriss <morriss@f5534014-38df-0310-8fa8-9805f1628bb7> | 2011-01-16 03:46:16 +0000 |
---|---|---|
committer | morriss <morriss@f5534014-38df-0310-8fa8-9805f1628bb7> | 2011-01-16 03:46:16 +0000 |
commit | 8fd8145c312e76ea9cb95c14914c8817bd315a8d (patch) | |
tree | d425f254e94d747cc030227516704d5e0f6123a9 /epan/dissectors/packet-fmp.c | |
parent | 357e335a9d3ca043c9bf08701399cf650fa666a0 (diff) |
Use tvb_memeql().
Use tvb_ip_to_str().
There's no need to pass the result of tvb_get_ptr() as the 'value' in
proto_tree_add_*(): just use proto_tree_add_item().
Replace some tvb_get_ptr()s with tvb_get_ephemeral_string()s to ensure the
return string is NULL terminated.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@35547 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-fmp.c')
-rw-r--r-- | epan/dissectors/packet-fmp.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/epan/dissectors/packet-fmp.c b/epan/dissectors/packet-fmp.c index 5679f3a715..f09c1f7fc5 100644 --- a/epan/dissectors/packet-fmp.c +++ b/epan/dissectors/packet-fmp.c @@ -430,15 +430,12 @@ dissect_fmp_extentListEx(tvbuff_t *tvb, int offset, packet_info *pinfo _U_, static int dissect_plugInID(tvbuff_t *tvb, int offset, proto_tree *tree) { - const guint8 *plugInID; - if (!tree) { return offset; } - plugInID = tvb_get_ptr(tvb, offset, FMP_PLUG_IN_ID_SZ); - proto_tree_add_bytes(tree, hf_fmp_plugInID, tvb, offset, FMP_PLUG_IN_ID_SZ, - plugInID); + proto_tree_add_item(tree, hf_fmp_plugInID, tvb, offset, FMP_PLUG_IN_ID_SZ, + ENC_NA); return offset; } |