Module Name: src Committed By: riastradh Date: Fri Aug 11 21:30:32 UTC 2023
Modified Files: src/lib/libc/string: strlcpy.3 Log Message: strlcpy(3): Tweak markup. To generate a diff of this commit: cvs rdiff -u -r1.20 -r1.21 src/lib/libc/string/strlcpy.3 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/lib/libc/string/strlcpy.3 diff -u src/lib/libc/string/strlcpy.3:1.20 src/lib/libc/string/strlcpy.3:1.21 --- src/lib/libc/string/strlcpy.3:1.20 Fri Aug 11 21:20:39 2023 +++ src/lib/libc/string/strlcpy.3 Fri Aug 11 21:30:32 2023 @@ -1,4 +1,4 @@ -.\" $NetBSD: strlcpy.3,v 1.20 2023/08/11 21:20:39 riastradh Exp $ +.\" $NetBSD: strlcpy.3,v 1.21 2023/08/11 21:30:32 riastradh Exp $ .\" from OpenBSD: strlcpy.3,v 1.11 2000/11/16 23:27:41 angelos Exp .\" .\" Copyright (c) 1998, 2000 Todd C. Miller <todd.mil...@courtesan.com> @@ -53,8 +53,8 @@ strings respectively. The .Fn strlcpy function copies up to -.Fa size -- 1 bytes from the +.Fa size Li "- 1" +bytes from the .Tn NUL Ns -terminated string .Fa src @@ -72,8 +72,8 @@ string to the end of .Fa dst . It will append at most -.Fa size -- strlen(dst) - 1 bytes, +.Fa size Li "-" Fn strlen dst Li "- 1" +bytes, .Tn NUL Ns -terminating the result. .Ss Relation to Xr strncpy 3 and Xr strncat 3