Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:12.3
trustedgrub
use_ferror.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File use_ferror.diff of Package trustedgrub
Fread doesn't return -1 on error, so use ferror(). --- util/mbchk.c.old Tue Jan 22 18:36:17 2002 +++ util/mbchk.c Tue Jan 22 18:28:54 2002 @@ -59,7 +59,9 @@ check_multiboot (const char *filename, F int i; char buf[8192]; - if (fread (buf, 1, 8192, fp) < 0) + fread (buf, 1, 8192, fp); + + if (ferror(fp)) { fprintf (stderr, "%s: Read error.\n", filename); return 0;
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor