aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-fmp.c
diff options
context:
space:
mode:
authorJeff Morriss <jeff.morriss@ulticom.com>2011-01-16 03:46:16 +0000
committerJeff Morriss <jeff.morriss@ulticom.com>2011-01-16 03:46:16 +0000
commitd553df218ebcb9e76299592b0794f0553ed63ff7 (patch)
treed425f254e94d747cc030227516704d5e0f6123a9 /epan/dissectors/packet-fmp.c
parentf36e2be2874db3eb3917e2b9299509725d483ce3 (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. svn path=/trunk/; revision=35547
Diffstat (limited to 'epan/dissectors/packet-fmp.c')
-rw-r--r--epan/dissectors/packet-fmp.c7
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;
}