]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - fd.c
Replace PARA_VSNPRINTF by xvasprintf().
[paraslash.git] / fd.c
diff --git a/fd.c b/fd.c
index d2f93611de1e66ad9bbcd8dcd5aada40546f560f..a04232f84b3fd239249c866cb5a109551ad2b926 100644 (file)
--- a/fd.c
+++ b/fd.c
@@ -142,9 +142,11 @@ __printf_2_3 int write_va_buffer(int fd, const char *fmt, ...)
 {
        char *msg;
        int ret;
+       va_list ap;
 
-       PARA_VSPRINTF(fmt, msg);
-       ret = write_buffer(fd, msg);
+       va_start(ap, fmt);
+       ret = xvasprintf(&msg, fmt, ap);
+       ret = write_all(fd, msg, ret);
        free(msg);
        return ret;
 }