fix logic in __fwriting
This commit is contained in:
parent
a0b56b947a
commit
e5cb55fedd
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue