]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
[sofia-sip] fix build on newer clang
authorMike Jerris <mike@signalwire.com>
Wed, 1 Apr 2020 18:53:44 +0000 (12:53 -0600)
committerAndrey Volk <andywolk@gmail.com>
Wed, 6 May 2020 23:03:37 +0000 (03:03 +0400)
libs/sofia-sip/.update
libs/sofia-sip/libsofia-sip-ua/sip/sip_pref_util.c

index 16917b0159be0e256c3cfa1ded9ca3eba1da1c7b..4fe074aa9799cf2fa8772995b8d6a0bb2b532f74 100644 (file)
@@ -1 +1 @@
-Sat Mar 28 10:36:01 UTC 2020
+Wed Apr  1 12:53:24 MDT 2020
index 892d5d299d7b1a15dcd8d2878969c778b65503a0..0535e36bc759125274e7daf062afb5f2c8630414 100644 (file)
@@ -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(&param[1], &s[1], strlen(s) - 1) && \
    (param[strlen(s)] == '=' || param[strlen(s)] == '\0'))
 
   int xor = 0, base = 0;