diff options
Diffstat (limited to 'Zend/zend_smart_str.c')
-rw-r--r-- | Zend/zend_smart_str.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Zend/zend_smart_str.c b/Zend/zend_smart_str.c index d0d3689cd0..44b74a7489 100644 --- a/Zend/zend_smart_str.c +++ b/Zend/zend_smart_str.c @@ -19,7 +19,7 @@ #include <zend.h> #include "zend_smart_str_public.h" -#define SMART_STR_OVERHEAD (ZEND_MM_OVERHEAD + _STR_HEADER_SIZE) +#define SMART_STR_OVERHEAD (ZEND_MM_OVERHEAD + _ZSTR_HEADER_SIZE) #ifndef SMART_STR_PAGE # define SMART_STR_PAGE 4096 @@ -42,7 +42,7 @@ ZEND_API void ZEND_FASTCALL smart_str_erealloc(smart_str *str, size_t len) str->s->len = 0; } else { str->a = SMART_STR_NEW_SIZE(len); - str->s = (zend_string *) erealloc2(str->s, _STR_HEADER_SIZE + str->a + 1, _STR_HEADER_SIZE + str->s->len + 1); + str->s = (zend_string *) erealloc2(str->s, _ZSTR_HEADER_SIZE + str->a + 1, _ZSTR_HEADER_SIZE + str->s->len + 1); } } @@ -56,6 +56,6 @@ ZEND_API void ZEND_FASTCALL smart_str_realloc(smart_str *str, size_t len) str->s->len = 0; } else { str->a = SMART_STR_NEW_SIZE(len); - str->s = (zend_string *) realloc(str->s, _STR_HEADER_SIZE + str->a + 1); + str->s = (zend_string *) realloc(str->s, _ZSTR_HEADER_SIZE + str->a + 1); } } |