prevent CNAME/PTR parsing from reading data past the response end
[musl] / src / stdio / putc.c
index fa89349..4744d97 100644 (file)
@@ -1,12 +1,9 @@
-#include "stdio_impl.h"
+#include <stdio.h>
+#include "putc.h"
 
 int putc(int c, FILE *f)
 {
-       if (f->lock < 0 || !__lockfile(f))
-               return putc_unlocked(c, f);
-       c = putc_unlocked(c, f);
-       __unlockfile(f);
-       return c;
+       return do_putc(c, f);
 }
 
 weak_alias(putc, _IO_putc);