aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/drivers/unix/unix_efile.c
diff options
context:
space:
mode:
authorBjörn-Egil Dahlberg <[email protected]>2013-03-04 18:06:12 +0100
committerBjörn-Egil Dahlberg <[email protected]>2013-03-04 18:06:12 +0100
commitd0e0ce2aa23f036675288735a43fc6581d79c95c (patch)
treebb6420318aebf8c4611fbc39ccc299cd48c30117 /erts/emulator/drivers/unix/unix_efile.c
parent41e849eecd06ebb1472ddfb369243f0b337e0bd7 (diff)
downloadotp-d0e0ce2aa23f036675288735a43fc6581d79c95c.tar.gz
otp-d0e0ce2aa23f036675288735a43fc6581d79c95c.tar.bz2
otp-d0e0ce2aa23f036675288735a43fc6581d79c95c.zip
erts: Fix void * arithmetic
Diffstat (limited to 'erts/emulator/drivers/unix/unix_efile.c')
-rw-r--r--erts/emulator/drivers/unix/unix_efile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/erts/emulator/drivers/unix/unix_efile.c b/erts/emulator/drivers/unix/unix_efile.c
index 558651fff9..2bd5177be1 100644
--- a/erts/emulator/drivers/unix/unix_efile.c
+++ b/erts/emulator/drivers/unix/unix_efile.c
@@ -629,7 +629,7 @@ efile_writev(Efile_error* errInfo, /* Where to return error codes */
if (w < iov[cnt].iov_len) {
/* Adjust the buffer for next write */
iov[cnt].iov_len -= w;
- iov[cnt].iov_base += w;
+ iov[cnt].iov_base = ((char *)iov[cnt].iov_base) + w;
w = 0;
break;
} else {