summaryrefslogtreecommitdiff
path: root/src/configfile.c
diff options
context:
space:
mode:
authorGlenn Strauss <gstrauss@gluelogic.com>2021-06-14 20:43:36 -0400
committerGlenn Strauss <gstrauss@gluelogic.com>2021-08-27 02:16:53 -0400
commitf490078d0f273b7f88b6d107e88184fb04cdc1b3 (patch)
tree163f04d9761180057767ca6079b43c4b67a936be /src/configfile.c
parent8c5acaae3c02c2c90bed3efd5449841e3997b51e (diff)
downloadlighttpd-git-f490078d0f273b7f88b6d107e88184fb04cdc1b3.tar.gz
[multiple] buffer_copy_string_len_lc()
convenience wrapper combining buffer_copy_string_len() buffer_to_lower() and making a single pass over string
Diffstat (limited to 'src/configfile.c')
-rw-r--r--src/configfile.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/configfile.c b/src/configfile.c
index 8c6f6397..a673ad99 100644
--- a/src/configfile.c
+++ b/src/configfile.c
@@ -2553,9 +2553,7 @@ int config_set_defaults(server *srv) {
s->force_lowercase_filenames = 0; /* default to 0 */
buffer * const tb = srv->tmp_buf;
- buffer_copy_buffer(tb, s->document_root);
-
- buffer_to_lower(tb);
+ buffer_copy_string_len_lc(tb, BUF_PTR_LEN(s->document_root));
if (0 == stat(tb->ptr, &st1)) {
int is_lower = 0;