[next] telepathy-glib: Correct g_strdelimit usage

Simon McVittie smcv at kemper.freedesktop.org
Fri Sep 27 07:44:04 PDT 2013


Module: telepathy-glib
Branch: next
Commit: 017e7d4775f9fd1066ce8a5d7b0b7acef12f0475
URL:    http://cgit.freedesktop.org/telepathy/telepathy-glib/commit/?id=017e7d4775f9fd1066ce8a5d7b0b7acef12f0475

Author: Simon McVittie <simon.mcvittie at collabora.co.uk>
Date:   Fri Sep 27 14:39:35 2013 +0100

Correct g_strdelimit usage

---

 telepathy-glib/account.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/telepathy-glib/account.c b/telepathy-glib/account.c
index 75678a0..ff2f9f2 100644
--- a/telepathy-glib/account.c
+++ b/telepathy-glib/account.c
@@ -864,7 +864,7 @@ _tp_account_update (TpAccount *account,
       if (tp_str_empty (icon_name))
         {
           priv->icon_name = g_strdup_printf ("im-%s", priv->proto_name);
-          g_strdelimit (priv->icon_name, "_", "-");
+          g_strdelimit (priv->icon_name, "_", '-');
         }
       else
         {
@@ -1104,7 +1104,7 @@ _tp_account_constructed (GObject *object)
       &(priv->cm_name), &(priv->proto_name), NULL, NULL);
 
   priv->icon_name = g_strdup_printf ("im-%s", priv->proto_name);
-  g_strdelimit (priv->icon_name, "_", "-");
+  g_strdelimit (priv->icon_name, "_", '-');
   priv->service = g_strdup (priv->proto_name);
 
   g_signal_connect (self, "invalidated",



More information about the telepathy-commits mailing list