Mercurial > hg > nginx
diff src/core/ngx_conf_file.c @ 194:2357fa41738a
nginx-0.0.1-2003-11-21-09:30:49 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Fri, 21 Nov 2003 06:30:49 +0000 |
parents | c1f3a3c7c5db |
children | 8dee38ea9117 |
line wrap: on
line diff
--- a/src/core/ngx_conf_file.c +++ b/src/core/ngx_conf_file.c @@ -315,12 +315,12 @@ ngx_log_debug(cf->log, "TOKEN START"); } if (h->pos - start) { - ngx_memcpy(h->start, start, h->pos - start); + ngx_memcpy(h->start, start, (size_t) (h->pos - start)); } n = ngx_read_file(&cf->conf_file->file, h->start + (h->pos - start), - h->end - (h->start + (h->pos - start)), + (size_t) (h->end - (h->start + (h->pos - start))), cf->conf_file->file.offset); if (n == NGX_ERROR) { @@ -462,7 +462,8 @@ ngx_log_debug(cf->log, "%d:%d:%d:%d:%d ' if (found) { ngx_test_null(word, ngx_push_array(cf->args), NGX_ERROR); ngx_test_null(word->data, - ngx_palloc(cf->pool, h->pos - start + 1), + ngx_palloc(cf->pool, + (size_t) (h->pos - start + 1)), NGX_ERROR); for (dst = word->data, src = start, len = 0;