summaryrefslogtreecommitdiff
path: root/ext/spl
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2007-02-27 03:28:17 +0000
committerIlia Alshanetsky <iliaa@php.net>2007-02-27 03:28:17 +0000
commitefad70c2cc2edd8416a18ea6daf06f8627d1d68d (patch)
tree0a59c0e22bb3b224433600d86b8430276ed87b45 /ext/spl
parentcc04404b28d10481f63be986fe815de1fe31088b (diff)
downloadphp-git-efad70c2cc2edd8416a18ea6daf06f8627d1d68d.tar.gz
snprintf() -> slprintf()
Diffstat (limited to 'ext/spl')
-rwxr-xr-xext/spl/spl_directory.c2
-rwxr-xr-xext/spl/spl_iterators.c2
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 {