From: Ken Rice Date: Fri, 17 Jan 2014 15:07:16 +0000 (-0600) Subject: hush cranky compiles due to no format string X-Git-Tag: v1.5.8~25^2~344 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bc0dc9a719427295a0e7def1786bbdc0fe5fbfb5;p=thirdparty%2Ffreeswitch.git hush cranky compiles due to no format string --- diff --git a/src/switch_core.c b/src/switch_core.c index ca8a7539c6..5871dbfebd 100644 --- a/src/switch_core.c +++ b/src/switch_core.c @@ -82,7 +82,7 @@ static void send_heartbeat(void) duration.sec, duration.sec == 1 ? "" : "s", duration.ms, duration.ms == 1 ? "" : "s", duration.mms, duration.mms == 1 ? "" : "s"); - switch_event_add_header(event, SWITCH_STACK_BOTTOM, "FreeSWITCH-Version", switch_version_full()); + switch_event_add_header(event, SWITCH_STACK_BOTTOM, "FreeSWITCH-Version", "%s", switch_version_full()); switch_event_add_header(event, SWITCH_STACK_BOTTOM, "Uptime-msec", "%"SWITCH_TIME_T_FMT, switch_core_uptime() / 1000); switch_event_add_header(event, SWITCH_STACK_BOTTOM, "Session-Count", "%u", switch_core_session_count()); switch_event_add_header(event, SWITCH_STACK_BOTTOM, "Max-Sessions", "%u", switch_core_session_limit(0));