Welcome! Log In Create A New Profile

Advanced

ngx_cpystrn() has invalid description

Posted by mangup 
ngx_cpystrn() has invalid description
June 17, 2019 02:47PM
ngx_cpystrn() description say that function "Copies information from one memory location to another. Stops when n bytes are copied" (https://www.nginx.com/resources/wiki/extending/api/utility/)

But in fact it copies n-1 byte(src/core/ngx_string.c):
"
while (--n) {
*dst = *src;
"

Please, fix (documentation).
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 83
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready