You need to sign in or sign up before continuing.
提交 e5cb55fe 编写于 作者: R Rich Felker

fix logic in __fwriting

上级 a0b56b94
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册