Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libc/string Strengthen prohibition against overlapping i...



details:   https://anonhg.NetBSD.org/src/rev/08fe46d97c03
branches:  trunk
changeset: 807230:08fe46d97c03
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Wed Apr 01 20:18:17 2015 +0000

description:
Strengthen prohibition against overlapping in strcpy(3).

diffstat:

 lib/libc/string/strcpy.3 |  10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diffs (27 lines):

diff -r f11af9e3cb47 -r 08fe46d97c03 lib/libc/string/strcpy.3
--- a/lib/libc/string/strcpy.3  Wed Apr 01 20:03:11 2015 +0000
+++ b/lib/libc/string/strcpy.3  Wed Apr 01 20:18:17 2015 +0000
@@ -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 @@
 .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



Home | Main Index | Thread Index | Old Index