X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fstdio%2Fext.c;h=6b8ce91c5eb2a9fca45a8a9771ccea99452b5152;hb=a9e6d01114c8b4aa264d5d49aa26de8bda2c76be;hp=d5a403b6a03abb4a860398958f741057dd0ed0f4;hpb=a0b56b947a5a8a58fe2accea7f6d9ee927d70ad4;p=musl 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)