Re: [hackers] [farbfeld] [PATCH] Improve fread error handling in ff2*

2016-05-19 Thread FRIGN
On Thu, 19 May 2016 01:21:58 +0300 Alexander Krotov wrote: Hey Alexander, > In case of unexpected end of file errno is not set, and strerror(errno) > returns "Success". Caller should distinguish between error and EOF by > calling ferror(3) as described in fread(3). thank you very much for this

[hackers] [farbfeld] [PATCH] Improve fread error handling in ff2*

2016-05-18 Thread Alexander Krotov
In case of unexpected end of file errno is not set, and strerror(errno) returns "Success". Caller should distinguish between error and EOF by calling ferror(3) as described in fread(3). --- ff2jpg.c | 14 ++ ff2png.c | 7 +-- ff2ppm.c | 14 ++ 3 files changed, 25 inser