diff options
Diffstat (limited to 'addressbook')
-rw-r--r-- | addressbook/ChangeLog | 6 | ||||
-rw-r--r-- | addressbook/gui/widgets/eab-gui-util.c | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog index 9c48b34a98..43a21d5fbf 100644 --- a/addressbook/ChangeLog +++ b/addressbook/ChangeLog @@ -1,3 +1,9 @@ +2004-06-23 Not Zed <NotZed@Ximian.com> + + * gui/widgets/eab-gui-util.c + (eab_send_contact_list_as_attachment): use memcpy not strcpy to + copy to memory buffer. Fixes a UMW. See #60532. + 2004-06-23 Hans Petter Jansson <hpj@ximian.com> * gui/component/addressbook-view.c: Add an x-source-vcard target entry diff --git a/addressbook/gui/widgets/eab-gui-util.c b/addressbook/gui/widgets/eab-gui-util.c index d2303e0f97..75f81686b5 100644 --- a/addressbook/gui/widgets/eab-gui-util.c +++ b/addressbook/gui/widgets/eab-gui-util.c @@ -880,7 +880,7 @@ eab_send_contact_list_as_attachment (GList *contacts) attach_data = GNOME_Evolution_Composer_AttachmentData__alloc(); attach_data->_maximum = attach_data->_length = strlen (tempstr); attach_data->_buffer = CORBA_sequence_CORBA_char_allocbuf (attach_data->_length); - strcpy (attach_data->_buffer, tempstr); + memcpy (attach_data->_buffer, tempstr, attach_data->_length); g_free (tempstr); GNOME_Evolution_Composer_attachData (composer_server, |