summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenri Herscher <henri@oreka.org>2009-02-20 22:21:50 +0000
committerHenri Herscher <henri@oreka.org>2009-02-20 22:21:50 +0000
commit11d90b30829d0a4838970d994c73bc252a15f186 (patch)
tree90c8d4b7f2ab78981330a60e1e6d5113963e7f48
parentad08a31ce17bf5f89d46fe6a0ee74ec213653830 (diff)
Fixed MemFindAfter() so that it never searches beyond the end of packet.
git-svn-id: https://oreka.svn.sourceforge.net/svnroot/oreka/trunk@605 09dcff7a-b715-0410-9601-b79a96267cd0
-rw-r--r--orkaudio/audiocaptureplugins/voip/VoIp.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/orkaudio/audiocaptureplugins/voip/VoIp.cpp b/orkaudio/audiocaptureplugins/voip/VoIp.cpp
index 2539d19..98bab14 100644
--- a/orkaudio/audiocaptureplugins/voip/VoIp.cpp
+++ b/orkaudio/audiocaptureplugins/voip/VoIp.cpp
@@ -134,7 +134,7 @@ static char* memFindStr(char* toFind, char* start, char* stop)
// find the address that follows the given search string between start and stop pointers - case insensitive
char* memFindAfter(char* toFind, char* start, char* stop)
{
- for(char * ptr = start; (ptr<stop) && (ptr != NULL); ptr = (char *)memchr(ptr+1, toFind[0],(stop - start)))
+ for(char * ptr = start; (ptr<stop) && (ptr != NULL); ptr = (char *)memchr(ptr+1, toFind[0],(stop - ptr)))
{
if(ACE_OS::strncasecmp(toFind, ptr, strlen(toFind)) == 0)
{