diff options
author | Igor Sysoev <igor@sysoev.ru> | 2009-04-27 17:06:20 +0400 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2009-04-27 17:06:20 +0400 |
commit | e1c9746e371d387f4166fe99d65fd94a3f27c260 (patch) | |
tree | 44dd93d5cb7ab37348c9688768598318ef5703fd /src/core/ngx_conf_file.c | |
parent | 4e1fe03e0388f64a5a221bbda4ac637231ea9686 (diff) |
use ngx_vslprintf(), ngx_slprintf()
Diffstat (limited to 'src/core/ngx_conf_file.c')
-rw-r--r-- | src/core/ngx_conf_file.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/ngx_conf_file.c b/src/core/ngx_conf_file.c index ea35515a3..c95834ae7 100644 --- a/src/core/ngx_conf_file.c +++ b/src/core/ngx_conf_file.c @@ -961,7 +961,7 @@ ngx_conf_log_error(ngx_uint_t level, ngx_conf_t *cf, ngx_err_t err, last = errstr + NGX_MAX_CONF_ERRSTR; va_start(args, fmt); - p = ngx_vsnprintf(errstr, last - errstr, fmt, args); + p = ngx_vslprintf(errstr, last, fmt, args); va_end(args); if (err) { @@ -977,10 +977,10 @@ ngx_conf_log_error(ngx_uint_t level, ngx_conf_t *cf, ngx_err_t err, } #if (NGX_WIN32) - p = ngx_snprintf(p, last - p, ((unsigned) err < 0x80000000) - ? " (%d: " : " (%Xd: ", err); + p = ngx_slprintf(p, last, ((unsigned) err < 0x80000000) + ? " (%d: " : " (%Xd: ", err); #else - p = ngx_snprintf(p, last - p, " (%d: ", err); + p = ngx_slprintf(p, last, " (%d: ", err); #endif p = ngx_strerror_r(err, p, last - p); |