comparison src/core/ngx_hash.c @ 1492:22fb8f72d3e7

fix r1416
author Igor Sysoev <igor@sysoev.ru>
date Fri, 21 Sep 2007 13:43:53 +0000
parents d83687d29853
children 2a92804f4109
comparison
equal deleted inserted replaced
1491:93ff27726d2e 1492:22fb8f72d3e7
894 p = ngx_palloc(ha->temp_pool, last); 894 p = ngx_palloc(ha->temp_pool, last);
895 if (p == NULL) { 895 if (p == NULL) {
896 return NGX_ERROR; 896 return NGX_ERROR;
897 } 897 }
898 898
899 ngx_cpystrn(p, key->data, last - 1); 899 ngx_cpystrn(p, key->data, last);
900 900
901 hwc = &ha->dns_wc_tail; 901 hwc = &ha->dns_wc_tail;
902 keys = &ha->dns_wc_tail_hash[k]; 902 keys = &ha->dns_wc_tail_hash[k];
903 } 903 }
904 904