diff options
Diffstat (limited to 'src/client/Response.cxx')
-rw-r--r-- | src/client/Response.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/client/Response.cxx b/src/client/Response.cxx index b741d7eb5..62aca5ebb 100644 --- a/src/client/Response.cxx +++ b/src/client/Response.cxx @@ -21,6 +21,7 @@ #include "Response.hxx" #include "Client.hxx" #include "util/FormatString.hxx" +#include "util/AllocatedString.hxx" bool Response::Write(const void *data, size_t length) @@ -37,10 +38,7 @@ Response::Write(const char *data) bool Response::FormatV(const char *fmt, va_list args) { - char *p = FormatNewV(fmt, args); - bool success = Write(p); - delete[] p; - return success; + return Write(FormatStringV(fmt, args).c_str()); } bool |