mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
Fix fread() to return a correct value on platforms where sizeof(int) !=
sizeof(size_t), i.e. on all 64-bit platforms. Reported by: Andrey V. Elsukov MFC after: 3 days
This commit is contained in:
parent
5c83795371
commit
e95f37bb69
1 changed files with 1 additions and 1 deletions
|
|
@ -50,7 +50,7 @@ __FBSDID("$FreeBSD$");
|
|||
size_t
|
||||
fread(void * __restrict buf, size_t size, size_t count, FILE * __restrict fp)
|
||||
{
|
||||
int ret;
|
||||
size_t ret;
|
||||
|
||||
FLOCKFILE(fp);
|
||||
ret = __fread(buf, size, count, fp);
|
||||
|
|
|
|||
Loading…
Reference in a new issue