From: Mike Jerris Date: Wed, 1 Apr 2020 18:53:44 +0000 (-0600) Subject: [sofia-sip] fix build on newer clang X-Git-Tag: v1.10.3^2~23 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=39892e05a7f5f9bddf6d86960c0a6b3f10912d00;p=thirdparty%2Ffreeswitch.git [sofia-sip] fix build on newer clang --- diff --git a/libs/sofia-sip/.update b/libs/sofia-sip/.update index 16917b0159..4fe074aa97 100644 --- a/libs/sofia-sip/.update +++ b/libs/sofia-sip/.update @@ -1 +1 @@ -Sat Mar 28 10:36:01 UTC 2020 +Wed Apr 1 12:53:24 MDT 2020 diff --git a/libs/sofia-sip/libsofia-sip-ua/sip/sip_pref_util.c b/libs/sofia-sip/libsofia-sip-ua/sip/sip_pref_util.c index 892d5d299d..0535e36bc7 100644 --- a/libs/sofia-sip/libsofia-sip-ua/sip/sip_pref_util.c +++ b/libs/sofia-sip/libsofia-sip-ua/sip/sip_pref_util.c @@ -312,7 +312,7 @@ int sip_prefs_matching(char const *pvalue, int sip_is_callerpref(char const *param) { #define MATCH(s) \ - (su_casenmatch(param + 1, s + 1, strlen(s) - 1) && \ + (su_casenmatch(¶m[1], &s[1], strlen(s) - 1) && \ (param[strlen(s)] == '=' || param[strlen(s)] == '\0')) int xor = 0, base = 0;