diff options
Diffstat (limited to 'modules/md/md_util.c')
-rw-r--r-- | modules/md/md_util.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/md/md_util.c b/modules/md/md_util.c index d0c23f9678..34e891d1ce 100644 --- a/modules/md/md_util.c +++ b/modules/md/md_util.c @@ -96,10 +96,10 @@ md_data_t *md_data_make(apr_pool_t *p, apr_size_t len) return d; } -void md_data_assign_pcopy(md_data_t *dest, const md_data_t *src, apr_pool_t *p) +void md_data_assign_pcopy(md_data_t *dest, const char *src, apr_size_t src_len, apr_pool_t *p) { - dest->data = (src->data && src->len)? apr_pmemdup(p, src->data, src->len) : NULL; - dest->len = dest->data? src->len : 0; + dest->data = (src && src_len)? apr_pmemdup(p, src, src_len) : NULL; + dest->len = dest->data? src_len : 0; } static const char * const hex_const[] = { |