There's no need to pass the result of tvb_get_ptr() as the 'value' in
authorJeff Morriss <jeff.morriss@ulticom.com>
Wed, 12 Jan 2011 03:35:14 +0000 (03:35 -0000)
committerJeff Morriss <jeff.morriss@ulticom.com>
Wed, 12 Jan 2011 03:35:14 +0000 (03:35 -0000)
commit2214faa7f34a940113fa6604784b6c7158421948
treec23500dad6cfef6574206b98c5b54fc712890d31
parentb6542d17d8d4414c86c547b675951e924f552948
There's no need to pass the result of tvb_get_ptr() as the 'value' in
proto_tree_add_string(): just use proto_tree_add_item().

Replace some tvb_get_ptr()s with tvb_get_ephemeral_string()s.

In a couple of places an hf variable was being used as the length in a call to
proto_tree_add_*().  Use the appropriate variable instead.

svn path=/trunk/; revision=35497
epan/dissectors/packet-dcerpc-rpriv.c
epan/dissectors/packet-dcerpc-rs_acct.c
epan/dissectors/packet-dcerpc-rs_misc.c