comparison 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
comparison
equal deleted inserted replaced
3886:901d9d93e71b 3887:e7798b5e990a
246 } 246 }
247 } 247 }
248 248
249 if (state == sw_passwd) { 249 if (state == sw_passwd) {
250 left = left + n - passwd; 250 left = left + n - passwd;
251 ngx_memcpy(buf, &buf[passwd], left); 251 ngx_memmove(buf, &buf[passwd], left);
252 passwd = 0; 252 passwd = 0;
253 253
254 } else { 254 } else {
255 left = 0; 255 left = 0;
256 } 256 }