]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - debug/fread_chk.c
Update copyright dates with scripts/update-copyrights.
[thirdparty/glibc.git] / debug / fread_chk.c
index bb8bada0fa4abf41256938dc8a148c4998ac10c3..ee88d37055c00ab29c5b0f59c03f29b8134fae53 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1993-2012 Free Software Foundation, Inc.
+/* Copyright (C) 1993-2016 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
@@ -39,7 +39,7 @@ __fread_chk (void *__restrict ptr, size_t ptrlen,
        __chk_fail ();
     }
 
-  if (__builtin_expect (bytes_requested > ptrlen, 0))
+  if (__glibc_unlikely (bytes_requested > ptrlen))
     __chk_fail ();
 
   CHECK_FILE (stream, 0);