laruence                                 Mon, 08 Aug 2011 08:49:55 +0000

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

Log:
Sizeof mismatch

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 08:28:16 UTC 
(rev 314472)
+++ php/php-src/branches/PHP_5_4/ext/spl/spl_observer.c 2011-08-08 08:49:55 UTC 
(rev 314473)
@@ -117,7 +117,7 @@
                if (rv) {
                        if (Z_TYPE_P(rv) == IS_STRING) {
                                int hash_len = Z_STRLEN_P(rv);
-                               char *hash = emalloc((hash_len+1)*sizeof(char 
*));
+                               char *hash = emalloc((hash_len+1)*sizeof(char));
                                strncpy(hash, Z_STRVAL_P(rv), hash_len);
                                hash[hash_len] = 0;


Modified: php/php-src/trunk/ext/spl/spl_observer.c
===================================================================
--- php/php-src/trunk/ext/spl/spl_observer.c    2011-08-08 08:28:16 UTC (rev 
314472)
+++ php/php-src/trunk/ext/spl/spl_observer.c    2011-08-08 08:49:55 UTC (rev 
314473)
@@ -117,7 +117,7 @@
                if (rv) {
                        if (Z_TYPE_P(rv) == IS_STRING) {
                                int hash_len = Z_STRLEN_P(rv);
-                               char *hash = emalloc((hash_len+1)*sizeof(char 
*));
+                               char *hash = emalloc((hash_len+1)*sizeof(char));
                                strncpy(hash, Z_STRVAL_P(rv), hash_len);
                                hash[hash_len] = 0;


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

Reply via email to