Mercurial > hg > nginx
diff src/http/ngx_http_core_module.c @ 3887:e7798b5e990a
use memmove() in appropriate places
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 12 Apr 2011 08:02:46 +0000 |
parents | 901d9d93e71b |
children | 1df827cf70c0 |
line wrap: on
line diff
--- a/src/http/ngx_http_core_module.c +++ b/src/http/ngx_http_core_module.c @@ -1225,7 +1225,7 @@ ngx_http_core_try_files_phase(ngx_http_r *e.pos = '\0'; if (alias && ngx_strncmp(name, clcf->name.data, alias) == 0) { - ngx_memcpy(name, name + alias, len - alias); + ngx_memmove(name, name + alias, len - alias); path.len -= alias; } }