summaryrefslogtreecommitdiff
path: root/source4/web_server
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2007-09-14 23:21:00 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 15:06:46 -0500
commit9a012df08ee829c1d40fc88ba12a0ea479f60be0 (patch)
tree98fc38abc69111d06d29b0f7c57a5f3372bdcbed /source4/web_server
parent6f37a17d4a66c67de974cec14ebdf627114a397e (diff)
downloadsamba-9a012df08ee829c1d40fc88ba12a0ea479f60be0.tar.gz
samba-9a012df08ee829c1d40fc88ba12a0ea479f60be0.tar.bz2
samba-9a012df08ee829c1d40fc88ba12a0ea479f60be0.zip
r25175: Change to talloc_asprintf_append_buffer().
Jeremy. (This used to be commit 0844dbf597191b3e4d35a696695b229e986daec4)
Diffstat (limited to 'source4/web_server')
-rw-r--r--source4/web_server/http.c6
1 files changed, 3 insertions, 3 deletions
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;
}