diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2003-05-01 21:08:47 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2003-05-01 21:08:47 +0000 |
commit | f4a30e483c6f1d73f5bc4165aa70ecae9eff2c37 (patch) | |
tree | b5425c19ead178dc6e941fcfc7c8bfe9824ec737 /ext/mbstring/php_mbregex.c | |
parent | 19e8346959fd6ae788c1f3b1f82cf66dbe67a8a6 (diff) | |
download | php-git-f4a30e483c6f1d73f5bc4165aa70ecae9eff2c37.tar.gz |
MFH
Diffstat (limited to 'ext/mbstring/php_mbregex.c')
-rw-r--r-- | ext/mbstring/php_mbregex.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/mbstring/php_mbregex.c b/ext/mbstring/php_mbregex.c index 450fadf6f7..63f84c52b2 100644 --- a/ext/mbstring/php_mbregex.c +++ b/ext/mbstring/php_mbregex.c @@ -145,7 +145,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); if (pre->fastmap) { pre->options = options; pre->mbctype = mbctype; |