Store fgetc() return value in int for comparison with EOF
Brought to you by:
solbu
The return value of fgetc() must be stored in an int if it is compared against EOF.
As is, the check for EOF (-1) in RemoveM3U() is buggy:
On architectures that default to signed chars, reading 0xff will be mistaken for EOF.
On architectures that default to unsigned chars (arm, ppc), EOF will never be recognized.
Trivial patch attached.
For some reason I missed/forgot this bug repport.
Thanks for fixing. :-)
Wil be fixed in next release