* commit 'a596aa6abfdd8ecdb4bcdd9bcad24a19adcf7525': Drop magic number in strrchr and strchr
This commit is contained in:
commit
1e40ace49e
@ -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);
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user