iliaa           Tue Jan  9 15:20:45 2007 UTC

  Modified files:              (Branch: PHP_5_2)
    /php-src/ext/wddx   wddx.c 
  Log:
  Added key_length intialization for intergers
  
  
http://cvs.php.net/viewvc.cgi/php-src/ext/wddx/wddx.c?r1=1.119.2.10.2.8&r2=1.119.2.10.2.9&diff_format=u
Index: php-src/ext/wddx/wddx.c
diff -u php-src/ext/wddx/wddx.c:1.119.2.10.2.8 
php-src/ext/wddx/wddx.c:1.119.2.10.2.9
--- php-src/ext/wddx/wddx.c:1.119.2.10.2.8      Mon Jan  1 09:36:09 2007
+++ php-src/ext/wddx/wddx.c     Tue Jan  9 15:20:45 2007
@@ -16,7 +16,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: wddx.c,v 1.119.2.10.2.8 2007/01/01 09:36:09 sebastian Exp $ */
+/* $Id: wddx.c,v 1.119.2.10.2.9 2007/01/09 15:20:45 iliaa Exp $ */
 
 #ifdef HAVE_CONFIG_H
 #include "config.h"
@@ -284,7 +284,7 @@
 
                        switch (hash_type) {
                                case HASH_KEY_IS_LONG:
-                                       sprintf(tmp, "%ld", idx);
+                                       key_length = sprintf(tmp, "%ld", idx) + 
1;
                                        key = tmp;
                                        /* fallthru */
                                case HASH_KEY_IS_STRING:

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

Reply via email to