aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/drivers/unix/unix_efile.c
diff options
context:
space:
mode:
authorBjörn-Egil Dahlberg <[email protected]>2013-03-07 12:25:54 +0100
committerBjörn-Egil Dahlberg <[email protected]>2013-03-07 12:25:54 +0100
commit8bbe5fadb386ef50f1efbb9c2938444548b13e09 (patch)
treee385c3100b4edf55fcbc75bdc79c0da09691316c /erts/emulator/drivers/unix/unix_efile.c
parent57a33a31ca0fcb385dd899f4074310d0fbdefda4 (diff)
parentd0e0ce2aa23f036675288735a43fc6581d79c95c (diff)
downloadotp-8bbe5fadb386ef50f1efbb9c2938444548b13e09.tar.gz
otp-8bbe5fadb386ef50f1efbb9c2938444548b13e09.tar.bz2
otp-8bbe5fadb386ef50f1efbb9c2938444548b13e09.zip
Merge branch 'egil/ansi-pedantic' into maint
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 {