Fix EOF handling in BufferedFile::read()
commit353723ea77e1144e6cb97e390a23a2ebc6cf3587
authorOlly Betts <olly@survex.com>
Wed, 7 Mar 2018 19:35:36 +0000 (8 08:35 +1300)
committerOlly Betts <olly@survex.com>
Wed, 7 Mar 2018 19:35:36 +0000 (8 08:35 +1300)
tree3cf179a63399b6b61c261c68df8ee31dd0354a76
parent705b063b106b78cc8a055067542a0ac0fec66025
Fix EOF handling in BufferedFile::read()

Tell io_pread() we need at least one byte so it will handle EOF for
us.  Previously we read the byte one after the end of the buffer if
we tried to read past EOF.
xapian-core/backends/honey/honey_table.h