mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
ITS#9128 fix bus error in strchrlen
This commit is contained in:
parent
b71235ac45
commit
44a7b4632e
@ -145,7 +145,7 @@ static char *strchrlen(
|
||||
{
|
||||
const char *p;
|
||||
|
||||
for( p=beg; *p && p < end; p++ ) {
|
||||
for( p=beg; p < end && *p; p++ ) {
|
||||
if( *p == ch ) {
|
||||
*len = p - beg;
|
||||
return (char *) p;
|
||||
|
Loading…
Reference in New Issue
Block a user