Cast the result of g_realloc().

That squelches warnings if C++ compatibility is being checked.

Change-Id: Ia3dd9852df0fbf6353a84d299a385ef63c9f1acd
Reviewed-on: https://code.wireshark.org/review/28920
Reviewed-by: Guy Harris <guy@alum.mit.edu>
This commit is contained in:
Guy Harris 2018-08-01 02:08:53 -07:00
parent c9ecb01f36
commit f1e036b869
1 changed files with 1 additions and 1 deletions

View File

@ -293,7 +293,7 @@ dissect_rfc7468(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data
* First, grow the buffer as needed.
*/
databufsize += (linelen / 4) * 3 + 3;
databuf = g_realloc(databuf, databufsize);
databuf = (guint8 *)g_realloc(databuf, databufsize);
/*
* Now decode into it.