From 971ffd683ea23362bd8009567ff7860371e6e2cc Mon Sep 17 00:00:00 2001 From: Dario Lombardo Date: Tue, 17 Jun 2014 17:30:58 +0200 Subject: Fixup: tvb_get_string(z) -> tvb_get_string(z)_enc Change-Id: I63a3704effe3fcab01a193dc39b6a22e9f1cf3fe Reviewed-on: https://code.wireshark.org/review/2376 Reviewed-by: Anders Broman --- epan/dissectors/packet-xcsl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'epan/dissectors/packet-xcsl.c') diff --git a/epan/dissectors/packet-xcsl.c b/epan/dissectors/packet-xcsl.c index 18ebb2ac23..3e6b90dd23 100644 --- a/epan/dissectors/packet-xcsl.c +++ b/epan/dissectors/packet-xcsl.c @@ -307,7 +307,7 @@ static gboolean dissect_xcsl_tcp_heur(tvbuff_t *tvb, packet_info *pinfo, proto_t guint8 *protocol; if (tvb_length_remaining (tvb, offset) >= 5) { - protocol = tvb_get_string(wmem_packet_scope(), tvb, offset, 5); + protocol = tvb_get_string_enc(wmem_packet_scope(), tvb, offset, 5, ENC_ASCII); if (strncmp(protocol,"xcsl",4) == 0 && (protocol[4] == ';' || protocol[4] == '-')) { -- cgit v1.2.3