do not include <utility> from tree-vectorizer.h
[gcc.git] / libssp / strncat-chk.c
index d8056e843360284c1216e34706c7bd5819a19585..e4e82b18a17463925376d9ddb7c7396f5e4faa4f 100644 (file)
@@ -1,5 +1,5 @@
 /* Checking strncat.
-   Copyright (C) 1991, 1997, 2003, 2004, 2005, 2009 Free Software Foundation, Inc.
+   Copyright (C) 1991-2020 Free Software Foundation, Inc.
 
 This file is part of GCC.
 
@@ -87,12 +87,6 @@ __strncat_chk (char *__restrict__ dest, const char *__restrict__ src,
           *++dest = c;
           if (c == '\0')
             return s;
-          if (slen-- == 0)
-            __chk_fail ();
-          c = *src++;
-          *++dest = c;
-          if (c == '\0')
-            return s;
         } while (--n4 > 0);
       n &= 3;
     }