]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
mod_sms: fix "format literal and no arguments" warning
authorStefan Knoblich <stkn@openisdn.net>
Thu, 22 Sep 2011 19:11:43 +0000 (21:11 +0200)
committerStefan Knoblich <stkn@openisdn.net>
Thu, 22 Sep 2011 19:11:43 +0000 (21:11 +0200)
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 <stkn@openisdn.net>
src/mod/applications/mod_sms/mod_sms.c

index 096ee6be36841009c8614a0f1d96ed298eee59e6..86c2d55e19a531cb54005ea04467dca32b4d0f75 100644 (file)
@@ -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);