aboutsummaryrefslogtreecommitdiffstats
path: root/lib/wx
diff options
context:
space:
mode:
authorMichael Swan <[email protected]>2019-05-27 00:02:54 -0500
committerMichael Swan <[email protected]>2019-05-27 18:17:04 -0500
commit1deff3fd1bc83481ffb56db69d88a718b6a15c7f (patch)
tree1e3f80eb24635cc6889c9a7580223293939f4b57 /lib/wx
parentc3993aa68647b0337892ad0a8bb5ad6d28ddcd74 (diff)
downloadotp-1deff3fd1bc83481ffb56db69d88a718b6a15c7f.tar.gz
otp-1deff3fd1bc83481ffb56db69d88a718b6a15c7f.tar.bz2
otp-1deff3fd1bc83481ffb56db69d88a718b6a15c7f.zip
Fix wxe_driver improper realloc call
Diffstat (limited to 'lib/wx')
-rw-r--r--lib/wx/c_src/wxe_driver.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/wx/c_src/wxe_driver.c b/lib/wx/c_src/wxe_driver.c
index c9d299e0df..b94ec2f32d 100644
--- a/lib/wx/c_src/wxe_driver.c
+++ b/lib/wx/c_src/wxe_driver.c
@@ -214,7 +214,7 @@ standard_outputv(ErlDrvData drv_data, ErlIOVec* ev)
if(binref == NULL) { /* realloc */
max = sd->max_bins + DEF_BINS;
- driver_realloc(sd->bin, sizeof(WXEBinRef)*max);
+ sd->bin = driver_realloc(sd->bin, sizeof(WXEBinRef)*max);
for(i=sd->max_bins; i < max; i++) {
sd->bin[i].from = 0;
}