diff options
Diffstat (limited to 'string/strnlen.c')
-rw-r--r-- | string/strnlen.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/string/strnlen.c b/string/strnlen.c index 8d53afbaf0..b3ab7ae44a 100644 --- a/string/strnlen.c +++ b/string/strnlen.c @@ -40,7 +40,7 @@ __strnlen (const char *str, size_t maxlen) if (maxlen == 0) return 0; - if (__builtin_expect (end_ptr < str, 0)) + if (__glibc_unlikely (end_ptr < str)) end_ptr = (const char *) ~0UL; /* Handle the first few characters by reading one character at a time. |