Mercurial > hg > nginx-quic
comparison src/core/ngx_conf_file.c @ 3887:e7798b5e990a
use memmove() in appropriate places
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 12 Apr 2011 08:02:46 +0000 |
parents | ac33852faaac |
children | d620f497c50f |
comparison
equal
deleted
inserted
replaced
3886:901d9d93e71b | 3887:e7798b5e990a |
---|---|
505 "missing terminating \"%c\" character", ch); | 505 "missing terminating \"%c\" character", ch); |
506 return NGX_ERROR; | 506 return NGX_ERROR; |
507 } | 507 } |
508 | 508 |
509 if (len) { | 509 if (len) { |
510 ngx_memcpy(b->start, start, len); | 510 ngx_memmove(b->start, start, len); |
511 } | 511 } |
512 | 512 |
513 size = (ssize_t) (file_size - cf->conf_file->file.offset); | 513 size = (ssize_t) (file_size - cf->conf_file->file.offset); |
514 | 514 |
515 if (size > b->end - (b->start + len)) { | 515 if (size > b->end - (b->start + len)) { |