diff --git a/src/mcd-account-manager.c b/src/mcd-account-manager.c index 2c23145..d763f6c 100644 --- a/src/mcd-account-manager.c +++ b/src/mcd-account-manager.c @@ -522,7 +522,7 @@ create_unique_name (McdAccountManagerPrivate *priv, const gchar *manager, for (i = 0; i < 1024; i++) { sprintf (seq, "%u", i); - if (!g_key_file_has_group (priv->keyfile, path) && + if (!g_key_file_has_group (priv->keyfile, path + base_len) && dbus_g_connection_lookup_g_object (connection, path) == NULL) {