From 7cc000c5457f66e7a622ce216368f0a7f48c9bce Mon Sep 17 00:00:00 2001 From: Stefan Sayer Date: Tue, 6 May 2008 00:25:51 +0000 Subject: [PATCH] fixes searching after end of SDP in contains function (protos c7 4220) git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@931 8eb893ce-cfd4-0310-b710-fb5ebe64c474 --- core/AmSdp.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/AmSdp.cpp b/core/AmSdp.cpp index f7276602..1d518a9c 100644 --- a/core/AmSdp.cpp +++ b/core/AmSdp.cpp @@ -1023,7 +1023,7 @@ static void parse_sdp_origin(AmSdp* sdp_msg, char* s) 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++;