Commit ef8123ec authored by Arvid Requate's avatar Arvid Requate Committed by Quanah Gibson-Mount
Browse files

ITS#9128 fix bus error in strchrlen

parent b380d3e1
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment