We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In spiffs_object_read(), there's code to compute how much data can be read in each "chunk":
spiffs/src/spiffs_nucleus.c
Lines 2028 to 2033 in 1350deb
surely the last of the tests above should be: len_to_read = MIN(len_to_read, (fd->size - cur_offset));
len_to_read = MIN(len_to_read, (fd->size - cur_offset));
as it should be testing how much data remains in the file to be read, not the total file size?
The text was updated successfully, but these errors were encountered:
Sorry, something went wrong.
ec68ba8
@apwise: thanks!
No branches or pull requests
In spiffs_object_read(), there's code to compute how much data can be read in each "chunk":
spiffs/src/spiffs_nucleus.c
Lines 2028 to 2033 in 1350deb
surely the last of the tests above should be:
len_to_read = MIN(len_to_read, (fd->size - cur_offset));
as it should be testing how much data remains in the file to be read, not the total file size?
The text was updated successfully, but these errors were encountered: