summaryrefslogtreecommitdiff
path: root/src/configfile.c
diff options
context:
space:
mode:
authorGlenn Strauss <gstrauss@gluelogic.com>2022-05-03 01:10:10 -0400
committerGlenn Strauss <gstrauss@gluelogic.com>2022-05-11 23:51:47 -0400
commitf2610d23e242e96b49b115081c094206cca3e00d (patch)
tree5a91643123b35c77d37beab2debc24a477ffd275 /src/configfile.c
parent1194e6d24b92d1bdac60eb07ef45ad726d479654 (diff)
downloadlighttpd-git-f2610d23e242e96b49b115081c094206cca3e00d.tar.gz
[multiple] use buffer_append_char()
Diffstat (limited to 'src/configfile.c')
-rw-r--r--src/configfile.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/configfile.c b/src/configfile.c
index 251405b0..30ab6e5f 100644
--- a/src/configfile.c
+++ b/src/configfile.c
@@ -1263,7 +1263,7 @@ int config_finalize(server *srv, const buffer *default_server_tag) {
b->ptr[0] = (dc->cond == CONFIG_COND_SUFFIX) ? '\\' : '^';
}
if (dc->cond != CONFIG_COND_PREFIX)
- buffer_append_string_len(b, CONST_STR_LEN("$"));
+ buffer_append_char(b, '$');
dc->cond = CONFIG_COND_MATCH;
/*(config_pcre_keyvalue())*/
const int pcre_jit = config_feature_bool(srv, "server.pcre_jit", 1);
@@ -2344,7 +2344,7 @@ int config_remoteip_normalize(buffer * const b, buffer * const tb) {
uint32_t len = buffer_clen(b); /*(save len before adding CIDR mask)*/
if (nm_bits) {
- buffer_append_string_len(b, CONST_STR_LEN("/"));
+ buffer_append_char(b, '/');
buffer_append_int(b, (int)nm_bits);
}