[telepathy-mission-control/master] Escape - in protocol names as described in the spec
Sjoerd Simons
sjoerd.simons at collabora.co.uk
Tue Aug 18 09:22:46 PDT 2009
Reviewed-by: Simon McVittie <simon.mcvittie at collabora.co.uk>
---
src/mcd-account-manager.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/mcd-account-manager.c b/src/mcd-account-manager.c
index 49cd97b..0bd0d05 100644
--- a/src/mcd-account-manager.c
+++ b/src/mcd-account-manager.c
@@ -486,7 +486,7 @@ create_unique_name (McdAccountManagerPrivate *priv, const gchar *manager,
base = "account";
esc_manager = tp_escape_as_identifier (manager);
- esc_protocol = tp_escape_as_identifier (protocol);
+ esc_protocol = g_strcanon (g_strdup (protocol), "-", "_");
esc_base = tp_escape_as_identifier (base);
/* add two chars for the "/" */
len = strlen (esc_manager) + strlen (esc_protocol) + strlen (esc_base)
--
1.5.6.5
More information about the telepathy-commits
mailing list