Use tvb_memeql() and tvb_memcpy().
authormorriss <morriss@f5534014-38df-0310-8fa8-9805f1628bb7>
Sun, 16 Jan 2011 03:35:29 +0000 (03:35 +0000)
committermorriss <morriss@f5534014-38df-0310-8fa8-9805f1628bb7>
Sun, 16 Jan 2011 03:35:29 +0000 (03:35 +0000)
commit357e335a9d3ca043c9bf08701399cf650fa666a0
tree9659b266111b939e5e8ec48e927fd36978e40e88
parent79d6570a1e16ef93f8050d800e46811876b81a4a
Use tvb_memeql() and tvb_memcpy().

Use tvb_ip_to_str() and tvb_ip6_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@35546 f5534014-38df-0310-8fa8-9805f1628bb7
14 files changed:
epan/dissectors/packet-btobex.c
epan/dissectors/packet-cms.c
epan/dissectors/packet-cops.c
epan/dissectors/packet-dcc.c
epan/dissectors/packet-dcm.c
epan/dissectors/packet-dsi.c
epan/dissectors/packet-dtpt.c
epan/dissectors/packet-echo.c
epan/dissectors/packet-fcip.c
epan/dissectors/packet-gsm_a_gm.c
epan/dissectors/packet-gsm_map.c
epan/dissectors/packet-ipsi-ctl.c
epan/dissectors/packet-iscsi.c
epan/dissectors/packet-ldp.c