]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - debug/wcscpy_chk.c
Update copyright dates with scripts/update-copyrights.
[thirdparty/glibc.git] / debug / wcscpy_chk.c
index 1183dbbeeb14c73686971d23d34dc5e8b9984385..11f31e5285a57813b214b97c2cf09286b6e6974c 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1995, 1996, 1997, 2003, 2005 Free Software Foundation, Inc.
+/* Copyright (C) 1995-2018 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Ulrich Drepper <drepper@gnu.ai.mit.edu>, 1995.
 
@@ -35,7 +35,7 @@ __wcscpy_chk (wchar_t *dest, const wchar_t *src, size_t n)
 
       do
        {
-         if (__builtin_expect (n-- == 0, 0))
+         if (__glibc_unlikely (n-- == 0))
            __chk_fail ();
          c = *wcp++;
          wcp[off] = c;
@@ -48,7 +48,7 @@ __wcscpy_chk (wchar_t *dest, const wchar_t *src, size_t n)
 
       do
        {
-         if (__builtin_expect (n-- == 0, 0))
+         if (__glibc_unlikely (n-- == 0))
            __chk_fail ();
          c = *src++;
          *wcp++ = c;