diff options
author | Igor Sysoev <igor@sysoev.ru> | 2004-12-21 12:30:30 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2004-12-21 12:30:30 +0000 |
commit | b1dfe478a03ad6919f174812951f6a2bec8befae (patch) | |
tree | d8802484f8dbf5309b17a95b5fc9749627720a53 /src/core/ngx_string.c | |
parent | 5275a8b3ac534ff36973801ec2aa6ce1214d7cc9 (diff) | |
download | nginx-b1dfe478a03ad6919f174812951f6a2bec8befae.tar.gz nginx-b1dfe478a03ad6919f174812951f6a2bec8befae.zip |
nginx-0.1.13-RELEASE importrelease-0.1.13
*) Feature: the server_names_hash and server_names_hash_threshold
directives.
*) Bugfix: the *.domain.tld names in the "server_name" directive did
not work.
*) Bugfix: the %request_length log parameter logged the incorrect
length.
Diffstat (limited to 'src/core/ngx_string.c')
-rw-r--r-- | src/core/ngx_string.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/ngx_string.c b/src/core/ngx_string.c index 4c21fa61c..dd6d06afb 100644 --- a/src/core/ngx_string.c +++ b/src/core/ngx_string.c @@ -86,7 +86,7 @@ u_char *ngx_snprintf(u_char *buf, size_t max, const char *fmt, ...) u_char *ngx_vsnprintf(u_char *buf, size_t max, const char *fmt, va_list args) { - u_char *p, zero, *last, temp[NGX_MAX_INT_LEN]; + u_char *p, zero, *last, temp[NGX_INT64_LEN]; int d; size_t len; uint32_t ui32; @@ -120,7 +120,7 @@ u_char *ngx_vsnprintf(u_char *buf, size_t max, const char *fmt, va_list args) sign = 1; hexadecimal = 0; - p = temp + NGX_MAX_INT_LEN; + p = temp + NGX_INT64_LEN; while (*fmt >= '0' && *fmt <= '9') { width = width * 10 + *fmt++ - '0'; @@ -337,13 +337,13 @@ u_char *ngx_vsnprintf(u_char *buf, size_t max, const char *fmt, va_list args) } while (ui64 /= 10); } - len = (temp + NGX_MAX_INT_LEN) - p; + len = (temp + NGX_INT64_LEN) - p; while (len++ < width && buf < last) { *buf++ = zero; } - len = (temp + NGX_MAX_INT_LEN) - p; + len = (temp + NGX_INT64_LEN) - p; if (buf + len > last) { len = last - buf; } |