projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
prevent CNAME/PTR parsing from reading data past the response end
[musl]
/
src
/
stdio
/
fputc.c
diff --git
a/src/stdio/fputc.c
b/src/stdio/fputc.c
index
ec85938
..
f364ed3
100644
(file)
--- a/
src/stdio/fputc.c
+++ b/
src/stdio/fputc.c
@@
-1,10
+1,7
@@
-#include "stdio_impl.h"
+#include <stdio.h>
+#include "putc.h"
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);
- FUNLOCK(f);
- return c;
+ return do_putc(c, f);
}