fix return val in switch_stristr

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6024 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale 2007-10-23 02:59:46 +00:00
parent 592ee146fb
commit 4ff84e46a5
1 changed files with 1 additions and 1 deletions

View File

@ -205,7 +205,7 @@ SWITCH_DECLARE(const char *) switch_stristr(const char *str, const char *instr)
while(*a && *b) {
if (tolower(*b) == tolower(*a)) {
if (++x == score) {
return p;
return b - x + 1;
}
a++;
} else {