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/gui/widgets/eab-gui-util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'addressbook/gui') 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 v1.2.3