]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - debug/stpncpy_chk.c
Update copyright dates with scripts/update-copyrights
[thirdparty/glibc.git] / debug / stpncpy_chk.c
index f9fa66ccafb8582dc4a657ed58a32d22543cb2ee..91c7def264d00259cd08683d080ee0170c94c59a 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1993-2013 Free Software Foundation, Inc.
+/* Copyright (C) 1993-2024 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -13,7 +13,7 @@
 
    You should have received a copy of the GNU Lesser General Public
    License along with the GNU C Library; if not, see
-   <http://www.gnu.org/licenses/>.  */
+   <https://www.gnu.org/licenses/>.  */
 
 /* This is almost copied from strncpy.c, written by Torbjorn Granlund.  */
 
@@ -25,9 +25,6 @@
 char *
 __stpncpy_chk (char *dest, const char *src, size_t n, size_t destlen)
 {
-  char c;
-  char *s = dest;
-
   if (__builtin_expect (destlen < n, 0))
     __chk_fail ();