mod_sofia: Add missing format string to switch_event_add_body() call

Fixes GCC format string warning/error.

Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
This commit is contained in:
Stefan Knoblich 2013-07-11 01:15:16 +02:00
parent d9e5a55c55
commit 0e2a590afa
1 changed files with 1 additions and 1 deletions

View 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-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-From", from);
switch_event_add_header_string(event, SWITCH_STACK_BOTTOM, "Chat-Send-Profile", prof ? prof : "NULL"); 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); switch_event_fire(&event);
} }