diff src/core/ngx_string.c @ 26:45fe5b98a9de NGINX_0_1_13

nginx 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.
author Igor Sysoev <http://sysoev.ru>
date Tue, 21 Dec 2004 00:00:00 +0300
parents 8b6db3bda591
children 7ca9bdc82b3f
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;
             }