aboutsummaryrefslogtreecommitdiff
path: root/src/http/ngx_http_script.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2011-04-12 08:02:46 +0000
committerIgor Sysoev <igor@sysoev.ru>2011-04-12 08:02:46 +0000
commitd63104eea485f72f07c0eed0886890c1090c1f62 (patch)
tree922d1ba70db962fc5f9d6d57066b45bcf95c8104 /src/http/ngx_http_script.c
parentd80bcbcd0fef16a9bf5602fcba5ffa87f5074919 (diff)
downloadnginx-d63104eea485f72f07c0eed0886890c1090c1f62.tar.gz
nginx-d63104eea485f72f07c0eed0886890c1090c1f62.zip
use memmove() in appropriate places
Diffstat (limited to 'src/http/ngx_http_script.c')
-rw-r--r--src/http/ngx_http_script.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http/ngx_http_script.c b/src/http/ngx_http_script.c
index ef69155db..8b861ce34 100644
--- a/src/http/ngx_http_script.c
+++ b/src/http/ngx_http_script.c
@@ -1089,7 +1089,7 @@ ngx_http_script_regex_end_code(ngx_http_script_engine_t *e)
NGX_UNESCAPE_REDIRECT);
if (src < e->pos) {
- dst = ngx_copy(dst, src, e->pos - src);
+ dst = ngx_movemem(dst, src, e->pos - src);
}
e->pos = dst;