diff --git a/Zend/zend_reflection_api.c b/Zend/zend_reflection_api.c index b90b62e2e93..08eda3c105c 100644 --- a/Zend/zend_reflection_api.c +++ b/Zend/zend_reflection_api.c @@ -71,7 +71,7 @@ typedef struct _string { void string_init(string *str) { - str->string = (char *) emalloc(1042); + str->string = (char *) emalloc(1024); str->len = 1; str->alloced = 1024; *str->string = '\0'; diff --git a/ext/reflection/php_reflection.c b/ext/reflection/php_reflection.c index b90b62e2e93..08eda3c105c 100644 --- a/ext/reflection/php_reflection.c +++ b/ext/reflection/php_reflection.c @@ -71,7 +71,7 @@ typedef struct _string { void string_init(string *str) { - str->string = (char *) emalloc(1042); + str->string = (char *) emalloc(1024); str->len = 1; str->alloced = 1024; *str->string = '\0';