mirror of
https://github.com/nginx/nginx.git
synced 2025-01-19 01:42:58 +08:00
fix ngx_utf8_cpystrn(): it did not fully copy utf-8 string
This commit is contained in:
parent
e4bc4a2940
commit
d8be48a546
@ -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--;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user