X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fstdio%2Ffputc.c;h=98d0a20aca814bddf897c8049aff06af9c4cf75e;hb=e8dbf00a789e3b56ca6c3d88e8048b7b2c18b797;hp=ec859385644cc9ed219c29dbb49f85cfb0cf667b;hpb=0b44a0315b47dd8eced9f3b7f31580cf14bbfc01;p=musl diff --git a/src/stdio/fputc.c b/src/stdio/fputc.c index ec859385..98d0a20a 100644 --- a/src/stdio/fputc.c +++ b/src/stdio/fputc.c @@ -3,8 +3,9 @@ int fputc(int c, FILE *f) { FLOCK(f); - if (c != f->lbf && f->wpos + 1 < f->wend) *f->wpos++ = c; - else c = __overflow(f, c); + c = putc_unlocked(c, f); FUNLOCK(f); return c; } + +weak_alias(fputc, putc);