ITS#9128 fix bus error in strchrlen

This commit is contained in:
Arvid Requate 2019-12-03 23:33:10 +01:00 committed by Howard Chu
parent b71235ac45
commit 44a7b4632e

View File

@ -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;