sntree / fullfat

Automatically exported from code.google.com/p/fullfat
Other
0 stars 0 forks source link

FF_GetLine return value #7

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

Within the FF_GetLine for loop local variable c carries the return value of 
FF_GetC, breaking the loop if FF_GetC indicates EOF, or -1. The macro FF_isERR 
then evaluates true with this EOF value and FF_GetLine incorrectly returns -1 
upon EOF. Perhaps modifying FF_GetLine to test for EOF before FF_isERR.

What version of the product are you using? On what operating system?

2.0.0-beta2, FreeRTOS. Source of latest version appears to have the same issue.

Thanks,
Jason Valenzuela

Original issue reported on code.google.com by jvalenzu...@gmail.com on 6 Nov 2014 at 2:55