summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2014-05-08 16:57:26 -0400
committerMike Blumenkrantz <zmike@samsung.com>2014-05-08 17:01:11 -0400
commit3fb1bf05bf74abbff1f87b7e815dcafbec7c294a (patch)
tree53797c6f9dd7984a5e20270a643837aaf541257e
parent8f022542d151b0a2334aab5da70961b752b3a849 (diff)
bugfix: appindicator service name parsing now stringshares correctly
fix T811
-rw-r--r--src/modules/systray/e_mod_notifier_host_dbus.c17
1 files changed, 7 insertions, 10 deletions
diff --git a/src/modules/systray/e_mod_notifier_host_dbus.c b/src/modules/systray/e_mod_notifier_host_dbus.c
index 17fba756b..f5de1997d 100644
--- a/src/modules/systray/e_mod_notifier_host_dbus.c
+++ b/src/modules/systray/e_mod_notifier_host_dbus.c
@@ -22,16 +22,13 @@ typedef struct _Notifier_Host_Data {
22static Eina_Bool 22static Eina_Bool
23service_string_parse(const char *item, const char **path, const char **bus_id) 23service_string_parse(const char *item, const char **path, const char **bus_id)
24{ 24{
25 unsigned i; 25 const char *p;
26 for (i = 0; i < strlen(item); i++) 26
27 { 27 p = strchr(item, '/');
28 if (item[i] != '/') 28 if (!p) return EINA_FALSE;
29 continue; 29 *path = eina_stringshare_add(p);
30 *path = eina_stringshare_add(item+i); 30 *bus_id = eina_stringshare_add_length(item, p - item);
31 *bus_id = eina_stringshare_nprintf(i+1, "%s", item); 31 return EINA_TRUE;
32 return EINA_TRUE;
33 }
34 return EINA_FALSE;
35} 32}
36 33
37static Notifier_Item * 34static Notifier_Item *