From: Ben Pfaff Date: Sat, 12 Sep 2015 18:42:26 +0000 (-0700) Subject: pc+-file-reader: Fix handling of short files. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=87798cfc4b530dc7dfdefef77e632a22ee8a4866;hp=87798cfc4b530dc7dfdefef77e632a22ee8a4866;p=pspp 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. ---