mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 15:28:11 +00:00
LibC: fread() should return the number of elements (not bytes) read.
This commit is contained in:
parent
2444a35365
commit
f2773e05e5
1 changed files with 1 additions and 1 deletions
|
@ -208,7 +208,7 @@ size_t fread(void* ptr, size_t size, size_t nmemb, FILE* stream)
|
|||
return 0;
|
||||
if (nread == 0)
|
||||
stream->eof = true;
|
||||
return nread;
|
||||
return nread / size;
|
||||
}
|
||||
|
||||
size_t fwrite(const void* ptr, size_t size, size_t nmemb, FILE* stream)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue