summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIván Briano <sachieru@gmail.com>2013-03-22 21:59:31 -0300
committerIván Briano <sachieru@gmail.com>2013-03-22 21:59:59 -0300
commita42109d5feccb4f33a02577283db8308a3fd6239 (patch)
tree8002f93b21ed3757c54a720cccbb1e15c6925841
parent7e8cd1d02adce5e6c55d20612988da9454a5a743 (diff)
Send escaped string to the nofitication daemonHEADmaster
-rw-r--r--src/bin/shotgun/chat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/shotgun/chat.c b/src/bin/shotgun/chat.c
index a3dc111..7ab1c29 100644
--- a/src/bin/shotgun/chat.c
+++ b/src/bin/shotgun/chat.c
@@ -86,7 +86,6 @@ chat_message_insert(Contact *c, const char *from, const char *msg, Eina_Bool me)
86 len += strlen(from) + strlen(s) + sizeof("<color=#123456>%s <b>%s:</b></color> %s<ps>") + 5; 86 len += strlen(from) + strlen(s) + sizeof("<color=#123456>%s <b>%s:</b></color> %s<ps>") + 5;
87 buf = alloca(len); 87 buf = alloca(len);
88 snprintf(buf, len, "<color=#%s>%s <b>%s:</b></color> %s<ps>", color, timebuf, from, s); 88 snprintf(buf, len, "<color=#%s>%s <b>%s:</b></color> %s<ps>", color, timebuf, from, s);
89 free(s);
90 89
91#ifdef HAVE_NOTIFY 90#ifdef HAVE_NOTIFY
92 if (!me) 91 if (!me)
@@ -122,11 +121,12 @@ chat_message_insert(Contact *c, const char *from, const char *msg, Eina_Bool me)
122 img = NULL; 121 img = NULL;
123 } 122 }
124 } 123 }
125 ui_dbus_notify(c->list, img, from, msg); 124 ui_dbus_notify(c->list, img, from, s);
126 if (img) evas_object_del(img); 125 if (img) evas_object_del(img);
127 } 126 }
128 } 127 }
129#endif 128#endif
129 free(s);
130 l = c->list->image_list; 130 l = c->list->image_list;
131 if (e) 131 if (e)
132 elm_entry_entry_append(e, buf); 132 elm_entry_entry_append(e, buf);