summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormillert <>2001-06-18 22:29:59 +0000
committermillert <>2001-06-18 22:29:59 +0000
commitafae624d63e4e717c5bae8c7842a4712309f728f (patch)
tree83b3d55ac723e64e5307448b86a506be5ba4caa4
parentafb658e9e046b4942d392a049e5c71d5df427231 (diff)
downloadopenbsd-afae624d63e4e717c5bae8c7842a4712309f728f.tar.gz
openbsd-afae624d63e4e717c5bae8c7842a4712309f728f.tar.bz2
openbsd-afae624d63e4e717c5bae8c7842a4712309f728f.zip
Clarify that if strlcat() does not find a NUL within siz byte it
will not NUL terminate either.
-rw-r--r--src/lib/libc/string/strlcpy.36
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lib/libc/string/strlcpy.3 b/src/lib/libc/string/strlcpy.3
index 3d50e0b0f6..8bb1b3a1e2 100644
--- a/src/lib/libc/string/strlcpy.3
+++ b/src/lib/libc/string/strlcpy.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: strlcpy.3,v 1.12 2001/05/07 15:51:54 millert Exp $ 1.\" $OpenBSD: strlcpy.3,v 1.13 2001/06/18 22:29:59 millert Exp $
2.\" 2.\"
3.\" Copyright (c) 1998, 2000 Todd C. Miller <Todd.Miller@courtesan.com> 3.\" Copyright (c) 1998, 2000 Todd C. Miller <Todd.Miller@courtesan.com>
4.\" All rights reserved. 4.\" All rights reserved.
@@ -125,7 +125,9 @@ traverses
125.Fa size 125.Fa size
126characters without finding a NUL, the length of the string is considered 126characters without finding a NUL, the length of the string is considered
127to be 127to be
128.Fa size . 128.Fa size
129and the destination string will not be NUL-terminated (since there was
130no space for the NUL).
129This keeps 131This keeps
130.Fn strlcat 132.Fn strlcat
131from running off the end of a string. 133from running off the end of a string.