From a0e910014d37cb3a32bb50091092ad54fa138422 Mon Sep 17 00:00:00 2001 From: Stefan Knoblich Date: Thu, 22 Sep 2011 21:11:43 +0200 Subject: [PATCH] mod_sms: fix "format literal and no arguments" warning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- src/mod/applications/mod_sms/mod_sms.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);