mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-08 09:09:43 +00:00
LibC: fread() should return the number of elements (not bytes) read.
This commit is contained in:
parent
2444a35365
commit
f2773e05e5
Notes:
sideshowbarker
2024-07-19 14:56:20 +09:00
Author: https://github.com/awesomekling
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