diff options
author | Elliott Hughes <enh@google.com> | 2013-03-22 02:48:32 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2013-03-22 02:48:32 +0000 |
commit | 26c815c489197259e3692d4a1e35463989f7c7a3 (patch) | |
tree | 9cd5e6e45edbd5eed3ed8c4cb661aed382fd6943 /libc | |
parent | 612333f671a59d98fad6f594f5bf657dbd6c9c4d (diff) | |
parent | a6cc67c9b5955167c68f6a186c4a61ae3f588e12 (diff) | |
download | bionic-26c815c489197259e3692d4a1e35463989f7c7a3.tar.gz bionic-26c815c489197259e3692d4a1e35463989f7c7a3.tar.bz2 bionic-26c815c489197259e3692d4a1e35463989f7c7a3.zip |
Merge "Drop magic number in strrchr and strchr"
Diffstat (limited to 'libc')
-rw-r--r-- | libc/string/strchr.c | 2 | ||||
-rw-r--r-- | libc/string/strrchr.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/libc/string/strchr.c b/libc/string/strchr.c index 93cb250b0..29acca591 100644 --- a/libc/string/strchr.c +++ b/libc/string/strchr.c @@ -47,5 +47,5 @@ __strchr_chk(const char *p, int ch, size_t s_len) char * strchr(const char *p, int ch) { - return __strchr_chk(p, ch, (size_t) -1); + return __strchr_chk(p, ch, __BIONIC_FORTIFY_UNKNOWN_SIZE); } diff --git a/libc/string/strrchr.c b/libc/string/strrchr.c index 14f29c551..e709d498c 100644 --- a/libc/string/strrchr.c +++ b/libc/string/strrchr.c @@ -50,5 +50,5 @@ __strrchr_chk(const char *p, int ch, size_t s_len) char * strrchr(const char *p, int ch) { - return __strrchr_chk(p, ch, (size_t) -1); + return __strrchr_chk(p, ch, __BIONIC_FORTIFY_UNKNOWN_SIZE); } |