From afae624d63e4e717c5bae8c7842a4712309f728f Mon Sep 17 00:00:00 2001 From: millert <> Date: Mon, 18 Jun 2001 22:29:59 +0000 Subject: Clarify that if strlcat() does not find a NUL within siz byte it will not NUL terminate either. --- src/lib/libc/string/strlcpy.3 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/lib/libc/string/strlcpy.3') 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 @@ -.\" $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 .\" 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. -- cgit v1.2.3-55-g6feb