summaryrefslogtreecommitdiff
path: root/ext/mbstring/php_mbregex.c
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2003-05-01 21:08:31 +0000
committerIlia Alshanetsky <iliaa@php.net>2003-05-01 21:08:31 +0000
commit894e2aaf685da229122a1c054801fcd0c7c35484 (patch)
tree269dfec9c767eb41382d7edb51ffcfbb80ca32a4 /ext/mbstring/php_mbregex.c
parent833d734af1558dddd074421407265f5651bf253e (diff)
downloadphp-git-894e2aaf685da229122a1c054801fcd0c7c35484.tar.gz
emalloc -> safe_emalloc
Diffstat (limited to 'ext/mbstring/php_mbregex.c')
-rw-r--r--ext/mbstring/php_mbregex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/mbstring/php_mbregex.c b/ext/mbstring/php_mbregex.c
index 27aef6cef1..c99a83e270 100644
--- a/ext/mbstring/php_mbregex.c
+++ b/ext/mbstring/php_mbregex.c
@@ -237,7 +237,7 @@ php_mbregex_compile_pattern(mb_regex_t *pre, const char *pattern, int patlen, in
if(zend_hash_find(&MBSTRG(ht_rc), (char *)pattern, patlen+1, (void **) &rc) == FAILURE ||
rc->options != options || rc->mbctype != mbctype) {
memset(pre, 0, sizeof(*pre));
- pre->fastmap = (char*)emalloc((1 << MBRE_BYTEWIDTH)*sizeof(char));
+ pre->fastmap = (char*)safe_emalloc((1 << MBRE_BYTEWIDTH), sizeof(char), 0);
pre->options = options;
pre->mbctype = mbctype;
err_str = mbre_compile_pattern(pattern, patlen, pre);