From: Stefan Knoblich Date: Thu, 22 Sep 2011 19:11:43 +0000 (+0200) Subject: mod_sms: fix "format literal and no arguments" warning X-Git-Tag: v1.2-rc1~51^2~46 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a0e910014d37cb3a32bb50091092ad54fa138422;p=thirdparty%2Ffreeswitch.git mod_sms: fix "format literal and no arguments" warning mod_sms.c: In function ‘reply_function’: mod_sms.c:450: error: format not a string literal and no format arguments Reported-by: Gill #freeswitch @ irc.freenode.net Signed-off-by: Stefan Knoblich --- diff --git a/src/mod/applications/mod_sms/mod_sms.c b/src/mod/applications/mod_sms/mod_sms.c index 096ee6be36..86c2d55e19 100644 --- a/src/mod/applications/mod_sms/mod_sms.c +++ b/src/mod/applications/mod_sms/mod_sms.c @@ -445,9 +445,9 @@ SWITCH_STANDARD_CHAT_APP(reply_function) if (proto) { switch_ivr_create_message_reply(&reply, message, SMS_CHAT_PROTO); - + if (!zstr(data)) { - switch_event_add_body(reply, data); + switch_event_add_body(reply, "%s", data); } switch_core_chat_deliver(proto, &reply);