iliaa Tue Jan 9 15:21:23 2007 UTC Modified files: /php-src/ext/wddx wddx.c Log: MFB: Added key_length intialization for intergers http://cvs.php.net/viewvc.cgi/php-src/ext/wddx/wddx.c?r1=1.141&r2=1.142&diff_format=u Index: php-src/ext/wddx/wddx.c diff -u php-src/ext/wddx/wddx.c:1.141 php-src/ext/wddx/wddx.c:1.142 --- php-src/ext/wddx/wddx.c:1.141 Mon Jan 1 09:29:33 2007 +++ php-src/ext/wddx/wddx.c Tue Jan 9 15:21:23 2007 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: wddx.c,v 1.141 2007/01/01 09:29:33 sebastian Exp $ */ +/* $Id: wddx.c,v 1.142 2007/01/09 15:21:23 iliaa Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -285,7 +285,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