From: Igor Sysoev Date: Fri, 21 Sep 2007 13:43:53 +0000 (+0000) Subject: fix r1416 X-Git-Tag: release-0.6.12~3 X-Git-Url: http://git.kaiwu.me/%7B@url%7D?a=commitdiff_plain;h=425b0afd7cf5c883f2f5ef17782c03253c85fc3c;p=nginx.git fix r1416 --- diff --git a/src/core/ngx_hash.c b/src/core/ngx_hash.c index f0c167eaf..7213f9fdc 100644 --- a/src/core/ngx_hash.c +++ b/src/core/ngx_hash.c @@ -896,7 +896,7 @@ wildcard: return NGX_ERROR; } - ngx_cpystrn(p, key->data, last - 1); + ngx_cpystrn(p, key->data, last); hwc = &ha->dns_wc_tail; keys = &ha->dns_wc_tail_hash[k];