]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
stpncpy.3, strncpy.3: wfix
authorAlejandro Colomar <alx@kernel.org>
Tue, 6 Dec 2022 18:16:33 +0000 (19:16 +0100)
committerAlejandro Colomar <alx@kernel.org>
Tue, 6 Dec 2022 18:17:41 +0000 (19:17 +0100)
Signed-off-by: Alejandro Colomar <alx@kernel.org>
man3/stpncpy.3
man3/strncpy.3

index 3276b38935638b2fcb41d23d2373c8cc3128019e..0a62e3055d5a7e5a49edddba75beb5a4fc1b0227 100644 (file)
@@ -37,7 +37,7 @@ Feature Test Macro Requirements for glibc (see
 .SH DESCRIPTION
 .IR Note :
 This is probably not the function you want to use.
-For safe string copying, see
+For string copying with truncation, see
 .BR strlcpy (3bsd).
 .PP
 The
@@ -79,7 +79,7 @@ stpncpy(char *dest, const char *src, size_t n)
 .EE
 .in
 .PP
-The only valid use of
+The use of
 .BR strncpy ()
 is to copy a C string to a fixed-length buffer
 while ensuring that unused bytes in the destination buffer are zeroed out
index fc1d964c73642db96a94c28e9bd7eac359b67509..e2ffc683fde2b41e4a138397a1fc0a35a7904c06 100644 (file)
@@ -29,7 +29,7 @@ size_t " n );
 .fi
 .SH DESCRIPTION
 .BI Note: " This is not the function you want to use."
-For safe string copying, see
+For string copying with truncation, see
 .BR strlcpy (3bsd).
 For copying a string into a fixed-length buffer with zeroing of the rest,
 see
@@ -70,7 +70,7 @@ strncpy(char *dest, const char *src, size_t n)
 .EE
 .in
 .PP
-The only valid use of
+The use of
 .BR strncpy ()
 is to copy a C string to a fixed-length buffer
 while ensuring that unused bytes in the destination buffer are zeroed out