From 70f85e57b5c485b0cb03d278c6d04a1f042842a4 Mon Sep 17 00:00:00 2001 From: Not Zed Date: Wed, 23 Jun 2004 22:59:21 +0000 Subject: use memcpy not strcpy to copy to memory buffer. Fixes a UMW. See #60532. 2004-06-23 Not Zed * 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. svn path=/trunk/; revision=26486 --- addressbook/ChangeLog | 6 ++++++ addressbook/gui/widgets/eab-gui-util.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) (limited to 'addressbook') 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 + + * 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 * 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, -- cgit