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

index f1a57efa2d617f358a676f8b1d4acc9d708cb4e3..33f496852893935dbfad3c4b2c9d50a0172c8c45 100644 (file)
@@ -284,7 +284,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: