diff options
author | Antony Dovgal <tony2001@php.net> | 2006-12-25 21:08:02 +0000 |
---|---|---|
committer | Antony Dovgal <tony2001@php.net> | 2006-12-25 21:08:02 +0000 |
commit | 6c50fa955b95e3a3076f32429946e3b8b33a47a0 (patch) | |
tree | fbf7e3afabad8a38251d3e14cc8033bc197eef4c /ext/mhash | |
parent | 652c7096b2f399402cf00c9b05d74117e3fd5cee (diff) | |
download | php-git-6c50fa955b95e3a3076f32429946e3b8b33a47a0.tar.gz |
MFH
Diffstat (limited to 'ext/mhash')
-rw-r--r-- | ext/mhash/mhash.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/mhash/mhash.c b/ext/mhash/mhash.c index 23302fdc9a..2e201a7287 100644 --- a/ext/mhash/mhash.c +++ b/ext/mhash/mhash.c @@ -229,7 +229,7 @@ PHP_FUNCTION(mhash_keygen_s2k) keystruct.salt = salt; keystruct.salt_size = salt_len; - ret = emalloc(bytes + 1); + ret = safe_emalloc(1, bytes, 1); if (mhash_keygen_ext(KEYGEN_S2K_SALTED, keystruct, ret, bytes, password, password_len) >= 0) { ret[bytes] = '\0'; |