]> git.ipfire.org Git - thirdparty/libarchive.git/commit
Fix an error test on the result from fread 29/head
authorTristan Ravitch <travitch@cs.wisc.edu>
Fri, 2 Nov 2012 14:49:44 +0000 (09:49 -0500)
committerTristan Ravitch <travitch@cs.wisc.edu>
Fri, 2 Nov 2012 15:03:58 +0000 (10:03 -0500)
commit991025196867533de154550cdc2793cc14981a61
treec32f2ae6d931b7d7b339b32936c50595e583b1c3
parente0717c821d2f7bbe70fdc0cbde7441bb1318cd3c
Fix an error test on the result from fread

fread returns a short byte count on error (and ferror has to be used
to determine if it really was an error).  There was a check for < 0,
which fread cannot return.
libarchive/archive_read_open_file.c