Loading...
string/FreeBSD/strcat.3.patch Libc-498 Libc-583
--- Libc/Libc-498/string/FreeBSD/strcat.3.patch
+++ Libc/Libc-583/string/FreeBSD/strcat.3.patch
@@ -1,5 +1,5 @@
---- _SB/Libc/string/FreeBSD/strcat.3	2003-05-20 15:23:54.000000000 -0700
-+++ _SB/Libc/string/FreeBSD/strcat.3.edit	2006-06-28 16:55:53.000000000 -0700
+--- strcat.3.orig	2008-02-29 10:45:51.000000000 -0800
++++ strcat.3	2008-02-29 12:07:09.000000000 -0800
 @@ -40,16 +40,24 @@
  .Dt STRCAT 3
  .Os
@@ -28,7 +28,7 @@
  .Sh DESCRIPTION
  The
  .Fn strcat
-@@ -57,22 +65,22 @@
+@@ -57,24 +65,27 @@
  .Fn strncat
  functions
  append a copy of the null-terminated string
@@ -55,8 +55,13 @@
 +.Fa s2 ,
  and then adds a terminating
  .Ql \e0 .
++.Pp
++The source and destination strings should not overlap, as the
++behavior is undefined.
  .Sh RETURN VALUES
-@@ -82,7 +90,7 @@
+ The
+ .Fn strcat
+@@ -82,7 +93,7 @@
  .Fn strncat
  functions
  return the pointer
@@ -65,7 +70,7 @@
  .Sh SECURITY CONSIDERATIONS
  The
  .Fn strcat
-@@ -114,7 +122,7 @@
+@@ -114,7 +125,7 @@
  void
  foo(const char *arbitrary_string)
  {
@@ -74,7 +79,7 @@
  
  #if defined(BAD)
  	/*
-@@ -149,11 +157,6 @@
+@@ -149,11 +160,6 @@
  .Xr strcpy 3 ,
  .Xr strlcat 3 ,
  .Xr strlcpy 3