aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui/component/addressbook-storage.c
diff options
context:
space:
mode:
Diffstat (limited to 'addressbook/gui/component/addressbook-storage.c')
-rw-r--r--addressbook/gui/component/addressbook-storage.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/addressbook/gui/component/addressbook-storage.c b/addressbook/gui/component/addressbook-storage.c
index 4cf66bca00..9b73b93b54 100644
--- a/addressbook/gui/component/addressbook-storage.c
+++ b/addressbook/gui/component/addressbook-storage.c
@@ -371,15 +371,18 @@ addressbook_storage_init_source_uri (AddressbookSource *source)
str = g_string_new ("ldap://");
- g_string_sprintfa (str, "%s:%s/%s?"/*trigraph prevention*/"?%s",
- source->host, source->port, source->rootdn, ldap_unparse_scope (source->scope));
+ g_string_append_printf (str, "%s:%s/%s?"/*trigraph prevention*/"?%s",
+ source->host,
+ source->port,
+ source->rootdn,
+ ldap_unparse_scope (source->scope));
- g_string_sprintfa (str, ";limit=%d", source->limit);
+ g_string_append_printf (str, ";limit=%d", source->limit);
- g_string_sprintfa (str, ";ssl=%s", ldap_unparse_ssl (source->ssl));
+ g_string_append_printf (str, ";ssl=%s", ldap_unparse_ssl (source->ssl));
#if 0
- g_string_sprintfa (str, ";timeout=%d", source->timeout);
+ g_string_append_printf (str, ";timeout=%d", source->timeout);
#endif
source->uri = str->str;