* commit '3a6178f8b9498ece5383fac9feb692e8ed2d4ce0': Drop magic number in strrchr and strchr
This commit is contained in:
commit
bd43b613b8
@ -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