[Freeswitch-svn] [commit] r6024 - freeswitch/trunk/src
Freeswitch SVN
anthm at freeswitch.org
Mon Oct 22 22:59:46 EDT 2007
Author: anthm
Date: Mon Oct 22 22:59:46 2007
New Revision: 6024
Modified:
freeswitch/trunk/src/switch_utils.c
Log:
fix return val in switch_stristr
Modified: freeswitch/trunk/src/switch_utils.c
==============================================================================
--- freeswitch/trunk/src/switch_utils.c (original)
+++ freeswitch/trunk/src/switch_utils.c Mon Oct 22 22:59:46 2007
@@ -205,7 +205,7 @@
while(*a && *b) {
if (tolower(*b) == tolower(*a)) {
if (++x == score) {
- return p;
+ return b - x + 1;
}
a++;
} else {
More information about the Freeswitch-svn
mailing list