Quantcast
Channel: Nginx Forum - Other discussion
Viewing all articles
Browse latest Browse all 972

ngx_cpystrn() has invalid description

$
0
0
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).

Viewing all articles
Browse latest Browse all 972

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>