]> granicus.if.org Git - php/commitdiff
MFB: Added key_length intialization for intergers
authorIlia Alshanetsky <iliaa@php.net>
Tue, 9 Jan 2007 15:21:23 +0000 (15:21 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Tue, 9 Jan 2007 15:21:23 +0000 (15:21 +0000)
ext/wddx/wddx.c

index 3a14272ae2b65acf47049b9d82c74fe776813991..960b59322692d7ee185015cf76c96431881329af 100644 (file)
@@ -285,7 +285,7 @@ PS_SERIALIZER_DECODE_FUNC(wddx)
 
                        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: