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 5d8d5bfd73c97610626dccbe40e74e007b2dcc9f
This commit is contained in:
parent
bfb0095ec7
commit
d4fbd7a190
@ -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…
x
Reference in New Issue
Block a user