From 9a012df08ee829c1d40fc88ba12a0ea479f60be0 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Fri, 14 Sep 2007 23:21:00 +0000 Subject: r25175: Change to talloc_asprintf_append_buffer(). Jeremy. (This used to be commit 0844dbf597191b3e4d35a696695b229e986daec4) --- source4/web_server/http.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source4/web_server/http.c') diff --git a/source4/web_server/http.c b/source4/web_server/http.c index 150649e1bb..d19a26ac0e 100644 --- a/source4/web_server/http.c +++ b/source4/web_server/http.c @@ -82,7 +82,7 @@ static void http_output_headers(struct websrv_context *web) web->output.response_code, response_string); if (s == NULL) return; for (i=0;web->output.headers[i];i++) { - s = talloc_asprintf_append(s, "%s\r\n", web->output.headers[i]); + s = talloc_asprintf_append_buffer(s, "%s\r\n", web->output.headers[i]); } /* work out the content length */ @@ -92,7 +92,7 @@ static void http_output_headers(struct websrv_context *web) fstat(web->output.fd, &st); content_length += st.st_size; } - s = talloc_asprintf_append(s, "Content-Length: %u\r\n\r\n", content_length); + s = talloc_asprintf_append_buffer(s, "Content-Length: %u\r\n\r\n", content_length); if (s == NULL) return; b = web->output.content; @@ -125,7 +125,7 @@ static const char *http_local_path(struct websrv_context *web, if (path == NULL) return NULL; if (directory_exist(path)) { - path = talloc_asprintf_append(path, "/index.esp"); + path = talloc_asprintf_append_buffer(path, "/index.esp"); } return path; } -- cgit