]> granicus.if.org Git - php/commitdiff
MFH: emalloc -> safe_emalloc
authorfoobar <sniper@php.net>
Thu, 19 Feb 2004 02:13:39 +0000 (02:13 +0000)
committerfoobar <sniper@php.net>
Thu, 19 Feb 2004 02:13:39 +0000 (02:13 +0000)
ext/session/session.c

index 6522dcbd2e42071dd5515416081b47b2815b939f..d0ad73588c4ff193a9236e4c7b0af4c150628282 100644 (file)
@@ -1369,7 +1369,7 @@ PHP_FUNCTION(session_register)
        if (argc <= 0)
                RETURN_FALSE
        else
-               args = (zval ***)emalloc(argc * sizeof(zval **));
+               args = (zval ***)safe_emalloc(argc, sizeof(zval **), 0);
        
        if (zend_get_parameters_array_ex(argc, args) == FAILURE) {
                efree(args);