fix ngx_utf8_cpystrn(): it did not fully copy utf-8 string

This commit is contained in:
Igor Sysoev 2010-01-11 13:39:24 +00:00
parent e4bc4a2940
commit d8be48a546

View File

@ -1239,10 +1239,8 @@ ngx_utf8_cpystrn(u_char *dst, u_char *src, size_t n, size_t len)
break;
}
len--;
while (src < next) {
*++dst = *++src;
*dst++ = *src++;
len--;
}
}