summaryrefslogtreecommitdiff
path: root/src/response.c
diff options
context:
space:
mode:
authorGlenn Strauss <gstrauss@gluelogic.com>2021-03-25 13:29:18 -0400
committerGlenn Strauss <gstrauss@gluelogic.com>2021-04-02 01:16:42 -0400
commit680e6b3bca6e6b4c721af5844bd2f807c0060b83 (patch)
treea4e333d6070d9f72aeb35ddd64a69e0e2d5ca0d9 /src/response.c
parent262561fae1aad08550870efa4234c6c5659bd680 (diff)
downloadlighttpd-git-680e6b3bca6e6b4c721af5844bd2f807c0060b83.tar.gz
[multiple] buffer_copy_path_len2() aggregate
Diffstat (limited to 'src/response.c')
-rw-r--r--src/response.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/response.c b/src/response.c
index 6a4f68ce..9b79943e 100644
--- a/src/response.c
+++ b/src/response.c
@@ -524,8 +524,9 @@ http_response_prepare (request_st * const r)
*/
buffer_copy_buffer(&r->physical.basedir, &r->physical.doc_root);
- buffer_copy_buffer(&r->physical.path, &r->physical.doc_root);
- buffer_append_path_len(&r->physical.path, CONST_BUF_LEN(&r->physical.rel_path));
+ buffer_copy_path_len2(&r->physical.path,
+ CONST_BUF_LEN(&r->physical.doc_root),
+ CONST_BUF_LEN(&r->physical.rel_path));
if (r->conf.log_request_handling) {
log_error(r->conf.errh, __FILE__, __LINE__,