diff options
author | Chris Toshok <toshok@ximian.com> | 2001-02-06 11:34:49 +0800 |
---|---|---|
committer | Chris Toshok <toshok@src.gnome.org> | 2001-02-06 11:34:49 +0800 |
commit | f620b13aac23d7eaa873ab9c4d5559d40474b686 (patch) | |
tree | 60ac954cb11e9f99a8e9daf2da13be23c45cb23c /addressbook | |
parent | 4e239b49aec1a2f11b2bbc3af383f3ef78706de3 (diff) | |
download | gsoc2013-evolution-f620b13aac23d7eaa873ab9c4d5559d40474b686.tar gsoc2013-evolution-f620b13aac23d7eaa873ab9c4d5559d40474b686.tar.gz gsoc2013-evolution-f620b13aac23d7eaa873ab9c4d5559d40474b686.tar.bz2 gsoc2013-evolution-f620b13aac23d7eaa873ab9c4d5559d40474b686.tar.lz gsoc2013-evolution-f620b13aac23d7eaa873ab9c4d5559d40474b686.tar.xz gsoc2013-evolution-f620b13aac23d7eaa873ab9c4d5559d40474b686.tar.zst gsoc2013-evolution-f620b13aac23d7eaa873ab9c4d5559d40474b686.zip |
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 (create_card_handler): err,
allocate 2 char*s when i assign 2 char*s.
svn path=/trunk/; revision=8010
Diffstat (limited to 'addressbook')
-rw-r--r-- | addressbook/ChangeLog | 6 | ||||
-rw-r--r-- | addressbook/backend/pas/pas-backend-ldap.c | 2 |
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); |