mirror of
https://github.com/php/php-src.git
synced 2026-04-26 17:38:14 +02:00
ik, make it memcpy
This commit is contained in:
+1
-1
@@ -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';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user