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:
parent
c9ecb01f36
commit
f1e036b869
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue