diff options
Diffstat (limited to 'src/stdio/__overflow.c')
-rw-r--r-- | src/stdio/__overflow.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stdio/__overflow.c b/src/stdio/__overflow.c index 3bb37923..e65a594d 100644 --- a/src/stdio/__overflow.c +++ b/src/stdio/__overflow.c @@ -4,7 +4,7 @@ int __overflow(FILE *f, int _c) { unsigned char c = _c; if (!f->wend && __towrite(f)) return EOF; - if (f->wpos < f->wend && c != f->lbf) return *f->wpos++ = c; + if (f->wpos != f->wend && c != f->lbf) return *f->wpos++ = c; if (f->write(f, &c, 1)!=1) return EOF; return c; } |