X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=debug%2Fwcsncpy_chk.c;h=78c6a9cc9b46f78d3d6852b20a788f336d40c197;hb=187c3869ca6902a32a9c2ce8efba72a336604945;hp=43c0ea6438c54f79c88dfcd8f63bef589cdb08d9;hpb=e84eabb3871c9b39e59323bf3f6b98c2ca9d1cd0;p=platform%2Fupstream%2Fglibc.git diff --git a/debug/wcsncpy_chk.c b/debug/wcsncpy_chk.c index 43c0ea6..78c6a9c 100644 --- a/debug/wcsncpy_chk.c +++ b/debug/wcsncpy_chk.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1995, 1996, 1997, 2005 Free Software Foundation, Inc. +/* Copyright (C) 1995-2015 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper , 1995. @@ -23,7 +23,7 @@ wchar_t * __wcsncpy_chk (wchar_t *dest, const wchar_t *src, size_t n, size_t destlen) { - if (__builtin_expect (destlen < n, 0)) + if (__glibc_unlikely (destlen < n)) __chk_fail (); /* This function is not often enough used to justify not using a