diff src/http/modules/ngx_http_auth_basic_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 dd1570b6f237
children 9c057d5e1c27
line wrap: on
line diff
--- a/src/http/modules/ngx_http_auth_basic_module.c
+++ b/src/http/modules/ngx_http_auth_basic_module.c
@@ -248,7 +248,7 @@ ngx_http_auth_basic_handler(ngx_http_req
 
         if (state == sw_passwd) {
             left = left + n - passwd;
-            ngx_memcpy(buf, &buf[passwd], left);
+            ngx_memmove(buf, &buf[passwd], left);
             passwd = 0;
 
         } else {