summaryrefslogtreecommitdiff
path: root/strings/apr_snprintf.c
diff options
context:
space:
mode:
Diffstat (limited to 'strings/apr_snprintf.c')
-rw-r--r--strings/apr_snprintf.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/strings/apr_snprintf.c b/strings/apr_snprintf.c
index 8883a68db..f73bb32c6 100644
--- a/strings/apr_snprintf.c
+++ b/strings/apr_snprintf.c
@@ -550,7 +550,8 @@ static char *conv_fp(register char format, register double num,
* Check for Infinity and NaN
*/
if (apr_isalpha(*p)) {
- *len = strlen(strcpy(buf, p));
+ *len = strlen(p);
+ memcpy(buf, p, *len + 1);
*is_negative = FALSE;
return (buf);
}