Browse Source

fix logic in __fwriting

rs-1.0
Rich Felker 15 years ago
parent
commit
e5cb55fedd
  1. 2
      src/stdio/ext.c

2
src/stdio/ext.c

@ -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)

Loading…
Cancel
Save