summaryrefslogtreecommitdiff
path: root/lib/libc/string
diff options
context:
space:
mode:
authorriastradh <riastradh@NetBSD.org>2015-04-01 20:18:17 +0000
committerriastradh <riastradh@NetBSD.org>2015-04-01 20:18:17 +0000
commit66d03c1d8c7368f4d30ece1be80451f91f6be36b (patch)
tree5080ab3ef467254ce572eec00eb93ebb65da88f4 /lib/libc/string
parentaa47072975301d0b978fde039f7268e56fa4a15c (diff)
Strengthen prohibition against overlapping in strcpy(3).
Diffstat (limited to 'lib/libc/string')
-rw-r--r--lib/libc/string/strcpy.310
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/libc/string/strcpy.3 b/lib/libc/string/strcpy.3
index db14097215c..31aac3fafde 100644
--- a/lib/libc/string/strcpy.3
+++ b/lib/libc/string/strcpy.3
@@ -30,7 +30,7 @@
.\" SUCH DAMAGE.
.\"
.\" from: @(#)strcpy.3 8.1 (Berkeley) 6/4/93
-.\" $NetBSD: strcpy.3,v 1.22 2015/04/01 15:45:00 christos Exp $
+.\" $NetBSD: strcpy.3,v 1.23 2015/04/01 20:18:17 riastradh Exp $
.\"
.Dd April 1, 2015
.Dt STRCPY 3
@@ -93,9 +93,11 @@ is
.Em not
terminated.
.Pp
-For portability the source and destination strings should not overlap, because
-implementations are allowed to optimize character movement and the standard
-specifies that the results are undefined if they do.
+The strings
+.Fa src
+and
+.Fa dst
+may not overlap.
.Sh RETURN VALUES
The
.Fn strcpy