summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libc/include/string.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/include/string.h b/libc/include/string.h
index c0df686..b4cf70e 100644
--- a/libc/include/string.h
+++ b/libc/include/string.h
@@ -249,7 +249,7 @@ extern char* __strrchr_chk(const char *, int, size_t);
__BIONIC_FORTIFY_INLINE
char* strrchr(const char *s, int c) {
- size_t bos = __builtin_object_size(s, 0);
+ size_t bos = __bos(s);
// Compiler doesn't know destination size. Don't call __strrchr_chk
if (bos == __BIONIC_FORTIFY_UNKNOWN_SIZE) {