Module Name: src Committed By: riastradh Date: Wed Apr 1 20:18:17 UTC 2015
Modified Files: src/lib/libc/string: strcpy.3 Log Message: Strengthen prohibition against overlapping in strcpy(3). To generate a diff of this commit: cvs rdiff -u -r1.22 -r1.23 src/lib/libc/string/strcpy.3 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/lib/libc/string/strcpy.3 diff -u src/lib/libc/string/strcpy.3:1.22 src/lib/libc/string/strcpy.3:1.23 --- src/lib/libc/string/strcpy.3:1.22 Wed Apr 1 15:45:00 2015 +++ src/lib/libc/string/strcpy.3 Wed Apr 1 20:18:17 2015 @@ -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