summaryrefslogtreecommitdiff
path: root/ext/wddx
diff options
context:
space:
mode:
authorStanislav Malyshev <stas@php.net>2007-03-04 04:38:43 (GMT)
committerStanislav Malyshev <stas@php.net>2007-03-04 04:38:43 (GMT)
commit2ad036da3aec45107459cfa573cbf7b03f7a98cd (patch)
tree7caaa226687d74cb0ceff952312fdba5af829e5d /ext/wddx
parentb2673ab004b63c4454847e5a0f22ff8dbdcef6f8 (diff)
downloadphp-2ad036da3aec45107459cfa573cbf7b03f7a98cd.tar.gz
ik, make it memcpy
Diffstat (limited to 'ext/wddx')
-rw-r--r--ext/wddx/wddx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/wddx/wddx.c b/ext/wddx/wddx.c
index 471ba1a..3598c70 100644
--- a/ext/wddx/wddx.c
+++ b/ext/wddx/wddx.c
@@ -1035,7 +1035,7 @@ static void php_wddx_process_data(void *user_data, const XML_Char *s, int len)
Z_STRLEN_P(ent->data) = decoded_len;
} else {
Z_STRVAL_P(ent->data) = erealloc(Z_STRVAL_P(ent->data), Z_STRLEN_P(ent->data) + decoded_len + 1);
- strlcpy(Z_STRVAL_P(ent->data) + Z_STRLEN_P(ent->data), decoded, decoded_len);
+ memcpy(Z_STRVAL_P(ent->data) + Z_STRLEN_P(ent->data), decoded, decoded_len);
Z_STRLEN_P(ent->data) += decoded_len;
Z_STRVAL_P(ent->data)[Z_STRLEN_P(ent->data)] = '\0';
}