Author: sayer
Date: 2008-05-06 02:25:51 +0200 (Tue, 06 May 2008)
New Revision: 931

Modified:
   trunk/core/AmSdp.cpp
Log:
fixes searching after end of SDP in contains function (protos c7 4220)

Modified: trunk/core/AmSdp.cpp
===================================================================
--- trunk/core/AmSdp.cpp        2008-05-03 15:20:38 UTC (rev 930)
+++ trunk/core/AmSdp.cpp        2008-05-06 00:25:51 UTC (rev 931)
@@ -1023,7 +1023,7 @@
 static bool contains(char* s, char* next_line, char c)
 {
   char* line=s;
-  while(line != next_line-1){
+  while((line != next_line-1) && (*line)){
     if(*line == c)
       return true;
     *line++;

_______________________________________________
Semsdev mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/semsdev

Reply via email to