aboutsummaryrefslogtreecommitdiff
path: root/src/core/ngx_file.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2003-05-20 15:37:55 +0000
committerIgor Sysoev <igor@sysoev.ru>2003-05-20 15:37:55 +0000
commit1c13c662f0ae8066d1d4849b4158d7459a4c7822 (patch)
treea8e517c0d41e922b1d3744d869edc60ed540b2d9 /src/core/ngx_file.c
parenta98301160de4c12f455cca8f78509f2e04626c0b (diff)
downloadnginx-1c13c662f0ae8066d1d4849b4158d7459a4c7822.tar.gz
nginx-1c13c662f0ae8066d1d4849b4158d7459a4c7822.zip
nginx-0.0.1-2003-05-20-19:37:55 import
Diffstat (limited to 'src/core/ngx_file.c')
-rw-r--r--src/core/ngx_file.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/ngx_file.c b/src/core/ngx_file.c
index b8f15e17d..d70004b2f 100644
--- a/src/core/ngx_file.c
+++ b/src/core/ngx_file.c
@@ -14,7 +14,7 @@ static int ngx_random;
int ngx_create_temp_file(ngx_file_t *file, ngx_path_t *path,
ngx_pool_t *pool, int persistent)
{
- int i, num;
+ int num;
ngx_err_t err;
file->name.len = path->name.len + 1 + path->len + 10;
@@ -33,8 +33,8 @@ int ngx_create_temp_file(ngx_file_t *file, ngx_path_t *path,
num = ngx_next_temp_number(0);
for ( ;; ) {
- snprintf(file->name.data + path->name.len + 1 + path->len, 11,
- "%010u", num);
+ ngx_snprintf(file->name.data + path->name.len + 1 + path->len, 11,
+ "%010u", num);
ngx_create_hashed_filename(file, path);