Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F148790863
D27228.id79569.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
590 B
Referenced Files
None
Subscribers
None
D27228.id79569.diff
View Options
Index: lib/libc/string/strlcpy.3
===================================================================
--- lib/libc/string/strlcpy.3
+++ lib/libc/string/strlcpy.3
@@ -27,7 +27,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd May 1, 2020
+.Dd November 15, 2020
.Dt STRLCPY 3
.Os
.Sh NAME
@@ -139,6 +139,11 @@
.Va dstsize ,
the output string has been truncated.
It is the caller's responsibility to handle this.
+Note:
+.Fn snprintf
+can return a negative value on some systems, while
+.Nm
+will not.
.Sh EXAMPLES
The following code fragment illustrates the simple case:
.Bd -literal -offset indent
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Mar 21, 6:00 AM (11 h, 30 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
30065182
Default Alt Text
D27228.id79569.diff (590 B)
Attached To
Mode
D27228: strlcpy/strlcat: Remove references to snprintf
Attached
Detach File
Event Timeline
Log In to Comment