diff options
author | Zeev Suraski <zeev@php.net> | 2000-11-26 09:34:01 +0000 |
---|---|---|
committer | Zeev Suraski <zeev@php.net> | 2000-11-26 09:34:01 +0000 |
commit | 8a03f3062f43a0a54cfcf935746d2ed9d9ab269a (patch) | |
tree | ecf6f8370fc733cedd40e9d65765a8d63d0c2293 /ext/bcmath/libbcmath/src/num2str.c | |
parent | 203d67ea6be0dcc780a254072fa11fa82a34628d (diff) | |
download | php-git-8a03f3062f43a0a54cfcf935746d2ed9d9ab269a.tar.gz |
- Add bcmath to the standard UNIX build
- Change a couple of malloc()'s and free()'s to emalloc()'s and efree()'s
Diffstat (limited to 'ext/bcmath/libbcmath/src/num2str.c')
-rw-r--r-- | ext/bcmath/libbcmath/src/num2str.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/bcmath/libbcmath/src/num2str.c b/ext/bcmath/libbcmath/src/num2str.c index 6a4a055ca1..c47ec9bbad 100644 --- a/ext/bcmath/libbcmath/src/num2str.c +++ b/ext/bcmath/libbcmath/src/num2str.c @@ -51,9 +51,9 @@ char /* Allocate the string memory. */ signch = ( num->n_sign == PLUS ? 0 : 1 ); /* Number of sign chars. */ if (num->n_scale > 0) - str = (char *) malloc (num->n_len + num->n_scale + 2 + signch); + str = (char *) emalloc (num->n_len + num->n_scale + 2 + signch); else - str = (char *) malloc (num->n_len + 1 + signch); + str = (char *) emalloc (num->n_len + 1 + signch); if (str == NULL) bc_out_of_memory(); /* The negative sign if needed. */ |