diff options
author | Lukas Larsson <[email protected]> | 2011-11-25 11:14:10 +0100 |
---|---|---|
committer | Lukas Larsson <[email protected]> | 2011-12-01 14:10:03 +0100 |
commit | eccba49e87ad32248a678d90cfdf355ffd97015d (patch) | |
tree | ea2fc16ac11769266c4faa1e90bf4fe76c165560 /erts/emulator/drivers/unix | |
parent | 1087d64af63d1fd5044d56e864557365ed40aab3 (diff) | |
download | otp-eccba49e87ad32248a678d90cfdf355ffd97015d.tar.gz otp-eccba49e87ad32248a678d90cfdf355ffd97015d.tar.bz2 otp-eccba49e87ad32248a678d90cfdf355ffd97015d.zip |
Fix offset calculation for darwin
Diffstat (limited to 'erts/emulator/drivers/unix')
-rw-r--r-- | erts/emulator/drivers/unix/unix_efile.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/erts/emulator/drivers/unix/unix_efile.c b/erts/emulator/drivers/unix/unix_efile.c index 3a966757d9..61df572a91 100644 --- a/erts/emulator/drivers/unix/unix_efile.c +++ b/erts/emulator/drivers/unix/unix_efile.c @@ -1494,6 +1494,7 @@ efile_sendfile(Efile_error* errInfo, int in_fd, int out_fd, #elif defined(DARWIN) off_t len = *nbytes; int retval = sendfile(in_fd, out_fd, *offset, &len, NULL, 0); + *offset += len; *nbytes = len; return check_error(retval, errInfo); #elif defined(__FreeBSD__) || defined(__DragonFly__) |