diff options
Diffstat (limited to 'userland/libc/stdio/fread.c')
-rw-r--r-- | userland/libc/stdio/fread.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/userland/libc/stdio/fread.c b/userland/libc/stdio/fread.c index 1a27afa..3d169fc 100644 --- a/userland/libc/stdio/fread.c +++ b/userland/libc/stdio/fread.c @@ -3,7 +3,7 @@ size_t fread(void *ptr, size_t size, size_t nmemb, FILE *stream) { // FIXME: Check for overflow - ssize_t bytes_to_read = nmemb * size; + size_t bytes_to_read = nmemb * size; size_t rc = stream->read(stream, ptr, bytes_to_read); // On success, fread() return the number of items read rc /= size; |