diff options
Diffstat (limited to 'strings')
-rw-r--r-- | strings/apr_cpystrn.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/strings/apr_cpystrn.c b/strings/apr_cpystrn.c index d6c98f7e9..d222d0814 100644 --- a/strings/apr_cpystrn.c +++ b/strings/apr_cpystrn.c @@ -46,14 +46,13 @@ APR_DECLARE(char *) apr_cpystrn(char *dst, const char *src, apr_size_t dst_size) { - char *d, *end; + char *d = dst, *end; if (dst_size == 0) { return (dst); } if (src) { - d = dst; end = dst + dst_size - 1; for (; d < end; ++d, ++src) { |