]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
man/man3/wcpncpy.3: RETURN VALUE: Fix incorrect wording
authorAlejandro Colomar <alx@kernel.org>
Fri, 11 Jul 2025 13:34:22 +0000 (15:34 +0200)
committerAlejandro Colomar <alx@kernel.org>
Fri, 11 Jul 2025 13:34:26 +0000 (15:34 +0200)
Fixes: d91506f8faa4 (1999-08-24, 2022-12-19; "man-pages 1.26")
Reported-by: Elliott Hughes <enh@google.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
man/man3/wcpncpy.3

index 636c1cdac0d4008bdcf1d8de5298e070632ba0f5..2533ac3693cb5864c63ccba88d99a28bad55a279 100644 (file)
@@ -79,8 +79,10 @@ characters at
 .IR dest .
 .SH RETURN VALUE
 .BR wcpncpy ()
-returns a pointer to the last wide character written, that is,
-.IR dest + n \-1.
+returns a pointer to
+one past the last non-null wide character written,
+that is,
+.IR dest\~+\~wcsnlen(src,\~n) .
 .SH ATTRIBUTES
 For an explanation of the terms used in this section, see
 .BR attributes (7).