fix fwrite return value when full write does not succeed
1 file changed