Mercurial > hg > nginx
comparison 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 |
comparison
equal
deleted
inserted
replaced
3886:901d9d93e71b | 3887:e7798b5e990a |
---|---|
1223 path.len = e.pos - path.data; | 1223 path.len = e.pos - path.data; |
1224 | 1224 |
1225 *e.pos = '\0'; | 1225 *e.pos = '\0'; |
1226 | 1226 |
1227 if (alias && ngx_strncmp(name, clcf->name.data, alias) == 0) { | 1227 if (alias && ngx_strncmp(name, clcf->name.data, alias) == 0) { |
1228 ngx_memcpy(name, name + alias, len - alias); | 1228 ngx_memmove(name, name + alias, len - alias); |
1229 path.len -= alias; | 1229 path.len -= alias; |
1230 } | 1230 } |
1231 } | 1231 } |
1232 | 1232 |
1233 test_dir = tf->test_dir; | 1233 test_dir = tf->test_dir; |