Welcome! Log In Create A New Profile


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: 175
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready