dlbeer / ufat

Low-memory feature-complete VFAT implementation
BSD 3-Clause "New" or "Revised" License
36 stars 12 forks source link

Fix bug in ufat_file_read() #9

Closed FreddieChopin closed 5 years ago

FreddieChopin commented 5 years ago

In inner loop the number of read bytes was assigned to ret, however the buffer was shifted by len bytes, where len was set before the loop. This causes all kinds of strange issues when reading data.

Fixes #8

dlbeer commented 5 years ago

Good catch, thanks!