*) mod_macro: use our own strncmp function
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@
1912994 13f79535-47bb-0310-9956-
ffa450edef68
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) {