Mercurial > hg > nginx-quic
diff src/core/ngx_string.c @ 477:ad1e9ebf93bb release-0.1.13
nginx-0.1.13-RELEASE import
*) 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.
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 21 Dec 2004 12:30:30 +0000 |
parents | 8e8f3af115b5 |
children | c52408583801 |
line wrap: on
line diff
--- 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 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_ 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_ } 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; }