pc+-file-reader: Fix handling of short files.
authorBen Pfaff <blp@cs.stanford.edu>
Sat, 12 Sep 2015 18:42:26 +0000 (11:42 -0700)
committerBen Pfaff <blp@cs.stanford.edu>
Sat, 12 Sep 2015 18:42:26 +0000 (11:42 -0700)
commit87798cfc4b530dc7dfdefef77e632a22ee8a4866
treec77d59dd23d13dd16410e3f2d2e1925332f7ab2e
parent14125d13946c1b2c3b7efe6cb88e35aa4623210b
pc+-file-reader: Fix handling of short files.

The code failed to return an error properly when fread() read past end of
file.

The function comment didn't properly reflect what the function actually
returned, so this commit also updates the comment.

Reported by John Darrington.
src/data/pc+-file-reader.c