From 15a202ea5d8c33e87c0fbe93cf67eab59c6f0b87 Mon Sep 17 00:00:00 2001 From: Pascal Quantin Date: Wed, 20 Jul 2016 14:50:09 +0200 Subject: PCP: add a missing cast Change-Id: I3fd85defefb5ba3c27ef7c7cc5e83a8193cf1263 Reviewed-on: https://code.wireshark.org/review/16558 Reviewed-by: Pascal Quantin --- epan/dissectors/packet-pcp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'epan/dissectors/packet-pcp.c') diff --git a/epan/dissectors/packet-pcp.c b/epan/dissectors/packet-pcp.c index fcd3b5cb40..9c742f176a 100644 --- a/epan/dissectors/packet-pcp.c +++ b/epan/dissectors/packet-pcp.c @@ -617,7 +617,7 @@ static void create_pmid_to_name_map_from_candidates(pcp_conv_info_t *pcp_conv_in guint8 *pmid_name; pmid = tvb_get_ntohl(tvb, offset); - pmid_name = wmem_array_index(pcp_conv_info->pmid_name_candidates, i); + pmid_name = (guint8 *)wmem_array_index(pcp_conv_info->pmid_name_candidates, i); if(wmem_map_lookup(pcp_conv_info->pmid_to_name, GINT_TO_POINTER(pmid)) == NULL) { wmem_map_insert(pcp_conv_info->pmid_to_name, GINT_TO_POINTER(pmid), pmid_name); -- cgit v1.2.3