mirror of
https://github.com/apache/nuttx.git
synced 2026-10-06 05:47:54 +00:00
libs/libc: Fix a fatal bug in fread
Fix a bug the destination buffer is not updated.
It is caused by the following commit.
commit 5d8d5bfd73
This commit is contained in:
parent
bfb0095ec7
commit
d4fbd7a190
1 changed files with 1 additions and 0 deletions
|
|
@ -137,6 +137,7 @@ ssize_t lib_fread_unlocked(FAR void *ptr, size_t count, FAR FILE *stream)
|
|||
|
||||
remaining -= gulp_size;
|
||||
stream->fs_bufpos += gulp_size;
|
||||
dest += gulp_size;
|
||||
}
|
||||
|
||||
/* The buffer is empty OR we have already supplied the number
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue