diff options
author | Treehugger Robot <treehugger-gerrit@google.com> | 2017-04-04 20:01:36 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2017-04-04 20:01:38 +0000 |
commit | defecea27bbe2c3dd521dfb3054d270918178f53 (patch) | |
tree | 34a3ab3ab8a295724415a2f3fad556cefaaf0384 /libc | |
parent | 12021ce9cf1ec1bc47cded3402ac9a3aa7b9b396 (diff) | |
parent | bce9a7d51898f73d8e3cef2c4a437bf08698430f (diff) |
Merge "libc: use __bos instead of __bos0 for strchr."
Diffstat (limited to 'libc')
-rw-r--r-- | libc/include/string.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libc/include/string.h b/libc/include/string.h index 26bd93f71..0cbd61c3f 100644 --- a/libc/include/string.h +++ b/libc/include/string.h @@ -358,9 +358,9 @@ size_t strlen(const char* const _Nonnull s __pass_object_size0) #if __ANDROID_API__ >= __ANDROID_API_J_MR2__ __BIONIC_FORTIFY_INLINE -char* strchr(const char* const _Nonnull s __pass_object_size0, int c) +char* strchr(const char* const _Nonnull s __pass_object_size, int c) __overloadable { - size_t bos = __bos0(s); + size_t bos = __bos(s); if (bos == __BIONIC_FORTIFY_UNKNOWN_SIZE) { return __builtin_strchr(s, c); |