mirror of
https://github.com/nginx/nginx.git
synced 2025-06-28 10:10:39 +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;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
len--;
|
|
||||||
|
|
||||||
while (src < next) {
|
while (src < next) {
|
||||||
*++dst = *++src;
|
*dst++ = *src++;
|
||||||
len--;
|
len--;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user