diff options
author | Igor Sysoev <igor@sysoev.ru> | 2007-01-29 20:33:51 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2007-01-29 20:33:51 +0000 |
commit | d1a0ee7fc792a47790dd85c9b1f70ca69145ee3e (patch) | |
tree | bd3aed73300ec3eaa8a4b41b84ca7b1e2e4321a2 /src/core/ngx_file.c | |
parent | b8bfa20c915219607a11c2f7a6449dc9efcce35d (diff) | |
download | nginx-d1a0ee7fc792a47790dd85c9b1f70ca69145ee3e.tar.gz nginx-d1a0ee7fc792a47790dd85c9b1f70ca69145ee3e.zip |
allocate less memory on 64-bit platforms
Diffstat (limited to 'src/core/ngx_file.c')
-rw-r--r-- | src/core/ngx_file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/ngx_file.c b/src/core/ngx_file.c index fa0e68306..cef4dc1b8 100644 --- a/src/core/ngx_file.c +++ b/src/core/ngx_file.c @@ -44,7 +44,7 @@ ngx_create_temp_file(ngx_file_t *file, ngx_path_t *path, ngx_pool_t *pool, ngx_pool_cleanup_t *cln; ngx_pool_cleanup_file_t *clnf; - file->name.len = path->name.len + 1 + path->len + NGX_ATOMIC_T_LEN; + file->name.len = path->name.len + 1 + path->len + 10; file->name.data = ngx_palloc(pool, file->name.len + 1); if (file->name.data == NULL) { |