X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fstdio%2Fvdprintf.c;h=b41a3c74cecfc08c1f1ad9c2cdbfe6d24af321bf;hb=98c5583ad5d633166e28034c0a3544ad48b532b6;hp=68562e052bf28de8cd060b3d7a668d0d74b8532f;hpb=9ae8d5fc71a4b61ec826d58f03f7b543755fb1d4;p=musl diff --git a/src/stdio/vdprintf.c b/src/stdio/vdprintf.c index 68562e05..b41a3c74 100644 --- a/src/stdio/vdprintf.c +++ b/src/stdio/vdprintf.c @@ -7,13 +7,10 @@ static size_t wrap_write(FILE *f, const unsigned char *buf, size_t len) int vdprintf(int fd, const char *fmt, va_list ap) { - int r; - unsigned char buf[BUFSIZ]; FILE f = { .fd = fd, .lbf = EOF, .write = wrap_write, - .buf = buf+UNGET, .buf_size = sizeof buf - UNGET + .buf = (void *)fmt, .buf_size = 0, + .lock = -1 }; - r = vfprintf(&f, fmt, ap); - __oflow(&f); - return r; + return vfprintf(&f, fmt, ap); }