# HG changeset patch # User Igor Sysoev # Date 1190382233 0 # Node ID 22fb8f72d3e7f1471e7e207788082ce8f176e56b # Parent 93ff27726d2eef3f11f077e07f5522d71ad2850d fix r1416 diff --git a/src/core/ngx_hash.c b/src/core/ngx_hash.c --- 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];