diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2007-02-27 03:28:17 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2007-02-27 03:28:17 +0000 |
commit | efad70c2cc2edd8416a18ea6daf06f8627d1d68d (patch) | |
tree | 0a59c0e22bb3b224433600d86b8430276ed87b45 /ext/wddx | |
parent | cc04404b28d10481f63be986fe815de1fe31088b (diff) | |
download | php-git-efad70c2cc2edd8416a18ea6daf06f8627d1d68d.tar.gz |
snprintf() -> slprintf()
Diffstat (limited to 'ext/wddx')
-rw-r--r-- | ext/wddx/wddx.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/wddx/wddx.c b/ext/wddx/wddx.c index 6bdbb05ed3..a250e20e36 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: - key_length = snprintf(tmp, sizeof(tmp), "%ld", idx) + 1; + key_length = slprintf(tmp, sizeof(tmp), "%ld", idx) + 1; key = tmp; /* fallthru */ case HASH_KEY_IS_STRING: @@ -501,7 +501,7 @@ static void php_wddx_serialize_object(wddx_packet *packet, zval *obj) zend_unmangle_property_name(key, key_len-1, &class_name, &prop_name); php_wddx_serialize_var(packet, *ent, prop_name, strlen(prop_name)+1 TSRMLS_CC); } else { - key_len = snprintf(tmp_buf, sizeof(tmp_buf), "%ld", idx); + key_len = slprintf(tmp_buf, sizeof(tmp_buf), "%ld", idx); php_wddx_serialize_var(packet, *ent, tmp_buf, key_len TSRMLS_CC); } } @@ -572,7 +572,7 @@ static void php_wddx_serialize_array(wddx_packet *packet, zval *arr) if (ent_type == HASH_KEY_IS_STRING) { php_wddx_serialize_var(packet, *ent, key, key_len TSRMLS_CC); } else { - key_len = snprintf(tmp_buf, sizeof(tmp_buf), "%ld", idx); + key_len = slprintf(tmp_buf, sizeof(tmp_buf), "%ld", idx); php_wddx_serialize_var(packet, *ent, tmp_buf, key_len TSRMLS_CC); } } else |