summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/apr_strings.h5
-rw-r--r--strings/apr_cpystrn.c2
2 files changed, 4 insertions, 3 deletions
diff --git a/include/apr_strings.h b/include/apr_strings.h
index c11c58f88..c313c71f2 100644
--- a/include/apr_strings.h
+++ b/include/apr_strings.h
@@ -198,9 +198,10 @@ APR_DECLARE_NONSTD(char *) apr_psprintf(apr_pool_t *p, const char *fmt, ...)
* destination string, we return a pointer to the terminating '\0'
* to allow us to check for truncation.
* </PRE>
- * @deffunc char *apr_cpystrn(char *dst, const char *src, size_t dst_size)
+ * @deffunc char *apr_cpystrn(char *dst, const char *src, apr_size_t dst_size)
*/
-APR_DECLARE(char *) apr_cpystrn(char *dst, const char *src, size_t dst_size);
+APR_DECLARE(char *) apr_cpystrn(char *dst, const char *src,
+ apr_size_t dst_size);
/**
* Strip spaces from a string
diff --git a/strings/apr_cpystrn.c b/strings/apr_cpystrn.c
index 0ece3ed17..85aa3f3ec 100644
--- a/strings/apr_cpystrn.c
+++ b/strings/apr_cpystrn.c
@@ -80,7 +80,7 @@
* apr_cpystrn() follows the same call structure as strncpy().
*/
-APR_DECLARE(char *) apr_cpystrn(char *dst, const char *src, size_t dst_size)
+APR_DECLARE(char *) apr_cpystrn(char *dst, const char *src, apr_size_t dst_size)
{
char *d, *end;