summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>2001-06-18 22:29:59 +0000
committermillert <millert@openbsd.org>2001-06-18 22:29:59 +0000
commitdc541b759853a72612f22690b5abfed37b740e1d (patch)
treefd657cbe33a1e0985fbcd8dde9b8d0f322f03685 /lib/libc
parentclnt leaks; tommy@ti.com (diff)
downloadwireguard-openbsd-dc541b759853a72612f22690b5abfed37b740e1d.tar.xz
wireguard-openbsd-dc541b759853a72612f22690b5abfed37b740e1d.zip
Clarify that if strlcat() does not find a NUL within siz byte it
will not NUL terminate either.
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/string/strlcpy.36
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/libc/string/strlcpy.3 b/lib/libc/string/strlcpy.3
index 3d50e0b0f68..8bb1b3a1e28 100644
--- a/lib/libc/string/strlcpy.3
+++ b/lib/libc/string/strlcpy.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: strlcpy.3,v 1.12 2001/05/07 15:51:54 millert Exp $
+.\" $OpenBSD: strlcpy.3,v 1.13 2001/06/18 22:29:59 millert Exp $
.\"
.\" Copyright (c) 1998, 2000 Todd C. Miller <Todd.Miller@courtesan.com>
.\" All rights reserved.
@@ -125,7 +125,9 @@ traverses
.Fa size
characters without finding a NUL, the length of the string is considered
to be
-.Fa size .
+.Fa size
+and the destination string will not be NUL-terminated (since there was
+no space for the NUL).
This keeps
.Fn strlcat
from running off the end of a string.