]> sjero.net Git - linphone/commitdiff
Fix bug with the keywordcmp macro.
authorGhislain MARY <ghislain.mary@belledonne-communications.com>
Fri, 15 Mar 2013 09:19:41 +0000 (10:19 +0100)
committerGhislain MARY <ghislain.mary@belledonne-communications.com>
Fri, 15 Mar 2013 09:19:41 +0000 (10:19 +0100)
This macro was supposed to be passed a string literal as first argument but was used with a string pointer sometimes.

coreapi/sal_eXosip2_sdp.c

index 9297077e66dafc25cefa4826fe94c7aaa02c23be..debd8550f63e35fb288286946d6e17616ce4041a 100644 (file)
@@ -24,7 +24,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 #include "sal.h"
 #include <eXosip2/eXosip.h>
 
-#define keywordcmp(key,b) strncmp(key,b,sizeof(key))
+#define keywordcmp(key,b) strcmp(key,b)
 
 #ifdef FOR_LATER