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

index 526a6d06f65c1eb1eaac6c7bc0bee4e64c105fab..5ed667d4495066a4e8de396f85df6d25fef8b183 100644 (file)
@@ -289,7 +289,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: