]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
mod_sofia: Add missing format string to switch_event_add_body() call
authorStefan Knoblich <stkn@openisdn.net>
Wed, 10 Jul 2013 23:15:16 +0000 (01:15 +0200)
committerStefan Knoblich <stkn@openisdn.net>
Wed, 10 Jul 2013 23:20:22 +0000 (01:20 +0200)
Fixes GCC format string warning/error.

Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
src/mod/endpoints/mod_sofia/sofia_presence.c

index 3bff37b2ee6e529b4eff4c972b6b2e1db600ed02..4c2f436f87f35d1ce7c3fd361f56f734dfe32e03 100644 (file)
@@ -272,7 +272,7 @@ switch_status_t sofia_presence_chat_send(switch_event_t *message_event)
                        switch_event_add_header_string(event, SWITCH_STACK_BOTTOM, "Chat-Send-To", to);
                        switch_event_add_header_string(event, SWITCH_STACK_BOTTOM, "Chat-Send-From", from);
                        switch_event_add_header_string(event, SWITCH_STACK_BOTTOM, "Chat-Send-Profile", prof ? prof : "NULL");
-                       switch_event_add_body(event, body);
+                       switch_event_add_body(event, "%s", body);
                        switch_event_fire(&event);
                }