aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook
diff options
context:
space:
mode:
Diffstat (limited to 'addressbook')
-rw-r--r--addressbook/ChangeLog6
-rw-r--r--addressbook/backend/pas/pas-backend-ldap.c2
2 files changed, 6 insertions, 2 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog
index 74247c578b..c8b33019da 100644
--- a/addressbook/ChangeLog
+++ b/addressbook/ChangeLog
@@ -1,5 +1,10 @@
2001-02-05 Chris Toshok <toshok@ximian.com>
+ * backend/pas/pas-backend-ldap.c (create_card_handler): err,
+ allocate 2 char*s when i assign 2 char*s.
+
+2001-02-05 Chris Toshok <toshok@ximian.com>
+
* backend/pas/pas-backend-ldap.c (modify_card_handler): switch to
ldap_modify_ext_s if OPENLDAP2, as ldap_modify_s is deprecated.
(build_mods_from_ecards): don't include the mod if the value is ""
@@ -9,7 +14,6 @@
(homephone_compare): new function.
(create_card_handler): add spew when adding cards so I can see
what's going on.
-
2001-02-05 Christopher James Lahey <clahey@helixcode.com>
* gui/component/addressbook-config.c (table_add_elem): Save the
diff --git a/addressbook/backend/pas/pas-backend-ldap.c b/addressbook/backend/pas/pas-backend-ldap.c
index a3b5ec04cd..f41f85926d 100644
--- a/addressbook/backend/pas/pas-backend-ldap.c
+++ b/addressbook/backend/pas/pas-backend-ldap.c
@@ -562,7 +562,7 @@ create_card_handler (PASBackend *backend, LDAPOp *op)
objectclass_mod = g_new (LDAPMod, 1);
objectclass_mod->mod_op = LDAP_MOD_ADD;
objectclass_mod->mod_type = g_strdup ("objectClass");
- objectclass_mod->mod_values = g_new (char*, 1);
+ objectclass_mod->mod_values = g_new (char*, 2);
objectclass_mod->mod_values[0] = g_strdup (OBJECT_CLASS);
objectclass_mod->mod_values[1] = NULL;
g_ptr_array_add (mod_array, objectclass_mod);