diff options
author | Rich Felker <dalias@aerifal.cx> | 2011-06-30 13:27:08 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2011-06-30 13:27:08 -0400 |
commit | e5cb55fedd811f71cd91ef097a8a4a4964d8c564 (patch) | |
tree | 56d7f86526e9fe8bca259a274a03de2b9f540e31 | |
parent | a0b56b947a5a8a58fe2accea7f6d9ee927d70ad4 (diff) | |
download | musl-e5cb55fedd811f71cd91ef097a8a4a4964d8c564.tar.gz musl-e5cb55fedd811f71cd91ef097a8a4a4964d8c564.tar.xz musl-e5cb55fedd811f71cd91ef097a8a4a4964d8c564.zip |
fix logic in __fwriting
-rw-r--r-- | src/stdio/ext.c | 2 |
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) |