summaryrefslogtreecommitdiffstats
path: root/modules/core/mod_macro.c
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 13:42:58 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 13:42:58 +0000
commit678fe256b3133f41132119e7ecd2f3ceae8b67e6 (patch)
tree5941bbb318e538945db26bbb1cbe3147cfd137c4 /modules/core/mod_macro.c
parentAdding debian version 2.4.57-2. (diff)
downloadapache2-678fe256b3133f41132119e7ecd2f3ceae8b67e6.tar.xz
apache2-678fe256b3133f41132119e7ecd2f3ceae8b67e6.zip
Merging upstream version 2.4.59.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'modules/core/mod_macro.c')
-rw-r--r--modules/core/mod_macro.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/core/mod_macro.c b/modules/core/mod_macro.c
index 04af43b..cc42d0b 100644
--- a/modules/core/mod_macro.c
+++ b/modules/core/mod_macro.c
@@ -465,7 +465,7 @@ static const char *process_content(apr_pool_t * pool,
for (i = 0; i < contents->nelts; i++) {
const char *errmsg;
/* copy the line and substitute macro parameters */
- strncpy(line, ((char **) contents->elts)[i], MAX_STRING_LEN - 1);
+ apr_cpystrn(line, ((char **) contents->elts)[i], MAX_STRING_LEN);
errmsg = substitute_macro_args(line, MAX_STRING_LEN,
macro, replacements, used);
if (errmsg) {