Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
utils/file: fix check of max read size
One byte matters! Quite possible to read exactly maxReadSize bytes and pop up a truncation error, but in fact no truncation has happened. This patch tidies up a truncation check by reading +1 byte and replacing '==' on '>' comparison. Signed-off-by: Roman Penyaev <r.peniaev@gmail.com>
- Loading branch information