comparison src/http/ngx_http_file_cache.c @ 5077:9ea42922a395

Removed zero termination of shm zone names. It was added in r2717 and no longer needed since r2721, where the termination was added to ngx_shm_alloc() and ngx_init_zone_pool(). So then it only corrupts error messages about ivalid zones.
author Valentin Bartenev <vbart@nginx.com>
date Tue, 19 Feb 2013 17:48:45 +0000
parents 95ab6658654a
children 711fa02afae8
comparison
equal deleted inserted replaced
5076:4c9c8f3f66ec 5077:9ea42922a395
1672 name.data = value[i].data + 10; 1672 name.data = value[i].data + 10;
1673 1673
1674 p = (u_char *) ngx_strchr(name.data, ':'); 1674 p = (u_char *) ngx_strchr(name.data, ':');
1675 1675
1676 if (p) { 1676 if (p) {
1677 *p = '\0';
1678
1679 name.len = p - name.data; 1677 name.len = p - name.data;
1680 1678
1681 p++; 1679 p++;
1682 1680
1683 s.len = value[i].data + value[i].len - p; 1681 s.len = value[i].data + value[i].len - p;