From: Stefan Knoblich Date: Wed, 10 Jul 2013 23:15:16 +0000 (+0200) Subject: mod_sofia: Add missing format string to switch_event_add_body() call X-Git-Tag: v1.5.3~56 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=90021b29537f12161048d978485de931eb45cc8e;p=thirdparty%2Ffreeswitch.git mod_sofia: Add missing format string to switch_event_add_body() call Fixes GCC format string warning/error. Signed-off-by: Stefan Knoblich --- diff --git a/src/mod/endpoints/mod_sofia/sofia_presence.c b/src/mod/endpoints/mod_sofia/sofia_presence.c index 3b4d1aa557..8ac0629ae1 100644 --- a/src/mod/endpoints/mod_sofia/sofia_presence.c +++ b/src/mod/endpoints/mod_sofia/sofia_presence.c @@ -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); }