about summary refs log tree commit diff stats
path: root/src/xmpp/presence.c
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2016-03-26 16:44:02 +0000
committerJames Booth <boothj5@gmail.com>2016-03-26 16:44:02 +0000
commit7b34f72007b6172de63d4b7b8ac49c01c7404c8f (patch)
tree2080a958b2629793b400886e9ee5b385e2b5655e /src/xmpp/presence.c
parentd0397f3da5ca659d86590e8730e6765609ef56ca (diff)
downloadprofani-tty-7b34f72007b6172de63d4b7b8ac49c01c7404c8f.tar.gz
Use xmpp_send_raw_string instead of xmpp_send_raw
Diffstat (limited to 'src/xmpp/presence.c')
-rw-r--r--src/xmpp/presence.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/xmpp/presence.c b/src/xmpp/presence.c
index c3b351b4..af0b4fde 100644
--- a/src/xmpp/presence.c
+++ b/src/xmpp/presence.c
@@ -825,9 +825,9 @@ _send_presence_stanza(xmpp_conn_t *const conn, xmpp_stanza_t *const stanza)
 
     char *plugin_text = plugins_on_presence_stanza_send(text);
     if (plugin_text) {
-        xmpp_send_raw(conn, plugin_text, strlen(plugin_text));
+        xmpp_send_raw_string(conn, "%s", plugin_text);
     } else {
-        xmpp_send_raw(conn, text, text_size);
+        xmpp_send_raw_string(conn, "%s", text);
     }
 }
 
@@ -840,8 +840,8 @@ _send_iq_stanza(xmpp_conn_t *const conn, xmpp_stanza_t *const stanza)
 
     char *plugin_text = plugins_on_iq_stanza_send(text);
     if (plugin_text) {
-        xmpp_send_raw(conn, plugin_text, strlen(plugin_text));
+        xmpp_send_raw_string(conn, "%s", plugin_text);
     } else {
-        xmpp_send_raw(conn, text, text_size);
+        xmpp_send_raw_string(conn, "%s", text);
     }
 }