diff options
Diffstat (limited to 'epan/dissectors/packet-who.c')
-rw-r--r-- | epan/dissectors/packet-who.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/epan/dissectors/packet-who.c b/epan/dissectors/packet-who.c index 13c9b47f27..537aed6743 100644 --- a/epan/dissectors/packet-who.c +++ b/epan/dissectors/packet-who.c @@ -138,7 +138,7 @@ dissect_who(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) } offset += 4; - tvb_get_nstringz0(tvb, offset, sizeof(server_name), server_name); + tvb_get_nstringz0(tvb, offset, sizeof(server_name), (guint8*)server_name); if (tree) proto_tree_add_string(who_tree, hf_who_hostname, tvb, offset, 32, server_name); @@ -202,12 +202,12 @@ dissect_whoent(tvbuff_t *tvb, int offset, proto_tree *tree) line_offset, SIZE_OF_WHOENT, FALSE); whoent_tree = proto_item_add_subtree(whoent_ti, ett_whoent); - tvb_get_nstringz0(tvb, line_offset, sizeof(out_line), out_line); + tvb_get_nstringz0(tvb, line_offset, sizeof(out_line), (guint8*)out_line); proto_tree_add_string(whoent_tree, hf_who_tty, tvb, line_offset, 8, out_line); line_offset += 8; - tvb_get_nstringz0(tvb, line_offset, sizeof(out_name), out_name); + tvb_get_nstringz0(tvb, line_offset, sizeof(out_name), (guint8*)out_name); proto_tree_add_string(whoent_tree, hf_who_uid, tvb, line_offset, 8, out_name); line_offset += 8; |