laruence                                 Mon, 08 Aug 2011 02:33:03 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=314456

Log:
Wrong sizeof

Changed paths:
    U   php/php-src/branches/PHP_5_4/ext/spl/spl_observer.c
    U   php/php-src/trunk/ext/spl/spl_observer.c

Modified: php/php-src/branches/PHP_5_4/ext/spl/spl_observer.c
===================================================================
--- php/php-src/branches/PHP_5_4/ext/spl/spl_observer.c 2011-08-08 02:23:25 UTC 
(rev 314455)
+++ php/php-src/branches/PHP_5_4/ext/spl/spl_observer.c 2011-08-08 02:33:03 UTC 
(rev 314456)
@@ -146,7 +146,7 @@

                return (char*)&Z_OBJVAL_P(obj);
 #else
-               char *hash = emalloc((hash_len+1)*sizeof(char *));
+               char *hash = emalloc((hash_len+1)*sizeof(char));

                zend_object_value zvalue;
                memset(&zvalue, 0, sizeof(zend_object_value));

Modified: php/php-src/trunk/ext/spl/spl_observer.c
===================================================================
--- php/php-src/trunk/ext/spl/spl_observer.c    2011-08-08 02:23:25 UTC (rev 
314455)
+++ php/php-src/trunk/ext/spl/spl_observer.c    2011-08-08 02:33:03 UTC (rev 
314456)
@@ -146,7 +146,7 @@

                return (char*)&Z_OBJVAL_P(obj);
 #else
-               char *hash = emalloc((hash_len+1)*sizeof(char *));
+               char *hash = emalloc((hash_len+1)*sizeof(char));

                zend_object_value zvalue;
                memset(&zvalue, 0, sizeof(zend_object_value));

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to