summaryrefslogtreecommitdiffstats
path: root/libc/include/string.h
diff options
context:
space:
mode:
authorNick Kralevich <nnk@google.com>2013-04-30 14:19:23 -0700
committerNick Kralevich <nnk@google.com>2013-04-30 14:19:23 -0700
commit3b2e6bc9acf5223db6e9967e46066219c76ee56f (patch)
tree2f88c2c3c967fda99f5f17c5bbaa417a52206364 /libc/include/string.h
parentc46871302e7bd099aaf54d91da93a2248acbf733 (diff)
downloadbionic-3b2e6bc9acf5223db6e9967e46066219c76ee56f.zip
bionic-3b2e6bc9acf5223db6e9967e46066219c76ee56f.tar.gz
bionic-3b2e6bc9acf5223db6e9967e46066219c76ee56f.tar.bz2
libc: upgrade strrchr to FORTIFY_SOURCE=2
Change-Id: I4c34c2ce22c5092c4446dc1ab55f37604c1c223f
Diffstat (limited to 'libc/include/string.h')
-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) {