diff options
author | morriss <morriss@f5534014-38df-0310-8fa8-9805f1628bb7> | 2011-01-16 03:57:12 +0000 |
---|---|---|
committer | morriss <morriss@f5534014-38df-0310-8fa8-9805f1628bb7> | 2011-01-16 03:57:12 +0000 |
commit | 6bb17846d7b60378c192c31396b42aac76e5dea8 (patch) | |
tree | 7f20cb0372c55d80a8f833d862d6cfd13a3c6a1e /epan/dissectors/packet-artnet.c | |
parent | 8fd8145c312e76ea9cb95c14914c8817bd315a8d (diff) |
Replace some tvb_get_ptr()s with tvb_get_ephemeral_string()s to ensure the
return string is NULL terminated.
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().
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@35548 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-artnet.c')
-rw-r--r-- | epan/dissectors/packet-artnet.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-artnet.c b/epan/dissectors/packet-artnet.c index 2df800644f..385327ffaa 100644 --- a/epan/dissectors/packet-artnet.c +++ b/epan/dissectors/packet-artnet.c @@ -1384,7 +1384,7 @@ dissect_artnet(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) { if (check_col(pinfo->cinfo, COL_INFO)) { col_append_fstr(pinfo->cinfo, COL_INFO, "%s", - tvb_get_ptr(tvb, offset, 8)); + tvb_get_ephemeral_string(tvb, offset, 8)); } if( tree ){ proto_tree_add_item(artnet_header_tree, hf_artnet_header_id, |