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/spl | |
| parent | cc04404b28d10481f63be986fe815de1fe31088b (diff) | |
| download | php-git-efad70c2cc2edd8416a18ea6daf06f8627d1d68d.tar.gz | |
snprintf() -> slprintf()
Diffstat (limited to 'ext/spl')
| -rwxr-xr-x | ext/spl/spl_directory.c | 2 | ||||
| -rwxr-xr-x | ext/spl/spl_iterators.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/ext/spl/spl_directory.c b/ext/spl/spl_directory.c index 4847f65edb..5b69ac9792 100755 --- a/ext/spl/spl_directory.c +++ b/ext/spl/spl_directory.c @@ -1642,7 +1642,7 @@ SPL_METHOD(SplTempFileObject, __construct) intern->file_name = "php://memory"; intern->file_name_len = 12; } else if (ZEND_NUM_ARGS()) { - intern->file_name_len = snprintf(tmp_fname, sizeof(tmp_fname), "php://temp/maxmemory:%ld", max_memory); + intern->file_name_len = slprintf(tmp_fname, sizeof(tmp_fname), "php://temp/maxmemory:%ld", max_memory); intern->file_name = tmp_fname; } else { intern->file_name = "php://temp"; diff --git a/ext/spl/spl_iterators.c b/ext/spl/spl_iterators.c index c93ded1762..471b24f433 100755 --- a/ext/spl/spl_iterators.c +++ b/ext/spl/spl_iterators.c @@ -1390,7 +1390,7 @@ SPL_METHOD(RegexIterator, accept) if (intern->u.regex.flags & REGIT_USE_KEY) { if (intern->current.key_type == HASH_KEY_IS_LONG) { - subject_len = snprintf(tmp, sizeof(tmp), "%ld", intern->current.int_key); + subject_len = slprintf(tmp, sizeof(tmp), "%ld", intern->current.int_key); subject = &tmp[0]; use_copy = 0; } else { |
