If reading into buffer, correct the stored file size at EOF, we don't
authornicm <nicm@openbsd.org>
Fri, 29 May 2015 11:03:37 +0000 (11:03 +0000)
committernicm <nicm@openbsd.org>
Fri, 29 May 2015 11:03:37 +0000 (11:03 +0000)
commit4386af0298465a1cc8ed42dc07522f625ece3540
tree478d589051e9efc0cc9fa042cfab4e561d7a7431
parent9a8fcba86e04d4f367449d09964acff71b609ad9
If reading into buffer, correct the stored file size at EOF, we don't
want to look at any garbage that might already be in the buffer after
that. From Sebastien Marie.
usr.bin/file/file.c