summaryrefslogtreecommitdiff
path: root/ext/wddx
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2007-01-09 15:20:45 (GMT)
committerIlia Alshanetsky <iliaa@php.net>2007-01-09 15:20:45 (GMT)
commit96a8399e2fe0a95627320e8d47a208591e0bdeaf (patch)
tree925334bd550f6b95542efa364279922e09a97071 /ext/wddx
parent8c086cae2388118961e9473cef502aba8be0aee1 (diff)
downloadphp-96a8399e2fe0a95627320e8d47a208591e0bdeaf.tar.gz
Added key_length intialization for intergers
Diffstat (limited to 'ext/wddx')
-rw-r--r--ext/wddx/wddx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/wddx/wddx.c b/ext/wddx/wddx.c
index f1a57ef..33f4968 100644
--- a/ext/wddx/wddx.c
+++ b/ext/wddx/wddx.c
@@ -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: