summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Zend/zend_string.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Zend/zend_string.h b/Zend/zend_string.h
index 725e069ed2..27ba50be3d 100644
--- a/Zend/zend_string.h
+++ b/Zend/zend_string.h
@@ -74,7 +74,7 @@ END_EXTERN_C()
: erealloc(str, new_len))
static inline char *_str_erealloc(char *str, size_t new_len, size_t old_len) {
- char *buf = emalloc(new_len);
+ char *buf = (char *) emalloc(new_len);
memcpy(buf, str, old_len);
return buf;
}