aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/file-rfc7468.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2018-08-01 02:08:53 -0700
committerGuy Harris <guy@alum.mit.edu>2018-08-01 09:09:29 +0000
commitf1e036b8697b59b8088ad2cc39012881cc62bf98 (patch)
treef866ee2fc588398085b4539253efc551b098d08a /epan/dissectors/file-rfc7468.c
parentc9ecb01f368d02f7cb77455296d24c5ba7c50134 (diff)
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>
Diffstat (limited to 'epan/dissectors/file-rfc7468.c')
-rw-r--r--epan/dissectors/file-rfc7468.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/file-rfc7468.c b/epan/dissectors/file-rfc7468.c
index e719500815..8ce58145bf 100644
--- a/epan/dissectors/file-rfc7468.c
+++ b/epan/dissectors/file-rfc7468.c
@@ -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.