aboutsummaryrefslogtreecommitdiff
path: root/src/stdio/ext.c
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2011-06-30 13:27:08 -0400
committerRich Felker <dalias@aerifal.cx>2011-06-30 13:27:08 -0400
commite5cb55fedd811f71cd91ef097a8a4a4964d8c564 (patch)
tree56d7f86526e9fe8bca259a274a03de2b9f540e31 /src/stdio/ext.c
parentadd and consolidate nasty stdio_ext junk (diff)
downloadgrovel-e5cb55fedd811f71cd91ef097a8a4a4964d8c564.tar.gz
grovel-e5cb55fedd811f71cd91ef097a8a4a4964d8c564.tar.xz
fix logic in __fwriting
Diffstat (limited to 'src/stdio/ext.c')
-rw-r--r--src/stdio/ext.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stdio/ext.c b/src/stdio/ext.c
index d5a403b6..6b8ce91c 100644
--- a/src/stdio/ext.c
+++ b/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)