summaryrefslogtreecommitdiff
path: root/ext/bcmath/libbcmath/src/num2str.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/bcmath/libbcmath/src/num2str.c')
-rw-r--r--ext/bcmath/libbcmath/src/num2str.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/bcmath/libbcmath/src/num2str.c b/ext/bcmath/libbcmath/src/num2str.c
index 47990d2e92..e38bf87797 100644
--- a/ext/bcmath/libbcmath/src/num2str.c
+++ b/ext/bcmath/libbcmath/src/num2str.c
@@ -52,9 +52,9 @@ zend_string
/* Allocate the string memory. */
signch = ( num->n_sign == PLUS ? 0 : 1 ); /* Number of sign chars. */
if (num->n_scale > 0)
- str = STR_ALLOC(num->n_len + num->n_scale + signch + 1, 0);
+ str = zend_string_alloc(num->n_len + num->n_scale + signch + 1, 0);
else
- str = STR_ALLOC(num->n_len + signch, 0);
+ str = zend_string_alloc(num->n_len + signch, 0);
if (str == NULL) bc_out_of_memory();
/* The negative sign if needed. */