]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
format string
authorBrian West <brian@freeswitch.org>
Sun, 18 Mar 2007 07:04:40 +0000 (07:04 +0000)
committerBrian West <brian@freeswitch.org>
Sun, 18 Mar 2007 07:04:40 +0000 (07:04 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4638 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_sofia/mod_sofia.c

index ff0ec639f9b75bd576f74491b607d4f88e3c505a..85cf28868c9a278850c9af85c4415c4c8926ff88 100644 (file)
@@ -4583,7 +4583,7 @@ static void sip_i_invite(nua_t *nua,
 
        if (sip->sip_max_forwards) {
                char max_forwards[32];
-               snprintf(max_forwards, sizeof(max_forwards), "%u", sip->sip_max_forwards->mf_count);
+               snprintf(max_forwards, sizeof(max_forwards), "%lu", sip->sip_max_forwards->mf_count);
                switch_channel_set_variable(channel, SWITCH_MAX_FORWARDS_VARIABLE, max_forwards);
        }