summaryrefslogtreecommitdiff
path: root/src/mod_userdir.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/mod_userdir.c
parent262561fae1aad08550870efa4234c6c5659bd680 (diff)
downloadlighttpd-git-680e6b3bca6e6b4c721af5844bd2f807c0060b83.tar.gz
[multiple] buffer_copy_path_len2() aggregate
Diffstat (limited to 'src/mod_userdir.c')
-rw-r--r--src/mod_userdir.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mod_userdir.c b/src/mod_userdir.c
index 591d0ba1..d8b22f35 100644
--- a/src/mod_userdir.c
+++ b/src/mod_userdir.c
@@ -173,13 +173,13 @@ static handler_t mod_userdir_docroot_construct(request_st * const r, plugin_data
}
struct passwd *pwd;
if (cached >= 0) {
- buffer_copy_buffer(b, &p->cache_path[cached]);
- buffer_append_path_len(b, CONST_BUF_LEN(p->conf.path));
+ buffer_copy_path_len2(b, CONST_BUF_LEN(&p->cache_path[cached]),
+ CONST_BUF_LEN(p->conf.path));
}
else if ((pwd = getpwnam(u))) {
const size_t plen = strlen(pwd->pw_dir);
- buffer_copy_string_len(b, pwd->pw_dir, plen);
- buffer_append_path_len(b, CONST_BUF_LEN(p->conf.path));
+ buffer_copy_path_len2(b, pwd->pw_dir, plen,
+ CONST_BUF_LEN(p->conf.path));
if (!stat_cache_path_isdir(b)) {
return HANDLER_GO_ON;
}