libc: upgrade strrchr to FORTIFY_SOURCE=2
Change-Id: I4c34c2ce22c5092c4446dc1ab55f37604c1c223f
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 @@
__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) {