Use "proto_tree_add_item()" to add the URI string to the protocol tree,
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Mon, 29 Apr 2002 00:33:30 +0000 (00:33 +0000)
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Mon, 29 Apr 2002 00:33:30 +0000 (00:33 +0000)
commit365abf10b61f9c9c71cc9937332a585525abd214
tree674f396c12b76252c2aab8779d5a56b50d0e9380
parent795aec3d5bca16ef49a5784b6716073e3611555f
Use "proto_tree_add_item()" to add the URI string to the protocol tree,
rather than extracting a string and adding that explicitly (which runs
the risk of leaking memory if the "tvb_get_ptr()" throws an exception).

Use "tvb_format_text()" when adding the string to the Info column, so
that non-printable characters are displayed as escapes.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@5283 f5534014-38df-0310-8fa8-9805f1628bb7
packet-wsp.c