fix logic in __fwriting

This commit is contained in:
Rich Felker committed 2011-06-30 13:27:08 -04:00
1 parent a0b56b947a
commit e5cb55fedd
1 file changed
+1 -1
+1 -1
View File
@@ -14,7 +14,7 @@ int __fsetlocking(FILE *f, int type)
int __fwriting(FILE *f)
{
return f->wend > f->wpos;
return f->wend && f->wpos > f->wbase;
}
int __freading(FILE *f)