fix coalesce read bug

This commit is contained in:
arvidn 2018-06-23 21:46:52 +02:00
parent 7ca769884c
commit 16b32741ce
1 changed files with 1 additions and 1 deletions

View File

@ -967,7 +967,7 @@ namespace {
}
#if TORRENT_USE_PREADV
std::int64_t ret = iov(&::preadv, native_handle(), file_offset, bufs, ec);
std::int64_t ret = iov(&::preadv, native_handle(), file_offset, tmp_bufs, ec);
#elif TORRENT_USE_PREAD
std::int64_t ret = iov(&::pread, native_handle(), file_offset, tmp_bufs, ec);
#else