X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fstdio%2Fvdprintf.c;h=b41a3c74cecfc08c1f1ad9c2cdbfe6d24af321bf;hb=7650390de8f72822ec0d4a9fb5b52efcf0be4698;hp=35ed6e0b6c737dfe75d5b9e86a65e57b19749038;hpb=4ee039f3545976f9e3e25a7e5d7b58f1f2316dc3;p=musl diff --git a/src/stdio/vdprintf.c b/src/stdio/vdprintf.c index 35ed6e0b..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; - 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); }