From 6f64df2e61a0e8addc9523e19508b6ce74a41c68 Mon Sep 17 00:00:00 2001 From: Gilbert Fang Date: Wed, 20 Aug 2003 08:58:13 +0000 Subject: use memcpy to assign CORBA_char_sequence instead of strcpy. (#46706) 2003-08-20 Gilbert Fang * gui/widgets/e-addressbook-util.c (e_addressbook_send_card_list): use memcpy to assign CORBA_char_sequence instead of strcpy. (#46706) svn path=/trunk/; revision=22305 --- addressbook/gui/widgets/e-addressbook-util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'addressbook/gui') diff --git a/addressbook/gui/widgets/e-addressbook-util.c b/addressbook/gui/widgets/e-addressbook-util.c index 31f6169112..1ddb6812a2 100644 --- a/addressbook/gui/widgets/e-addressbook-util.c +++ b/addressbook/gui/widgets/e-addressbook-util.c @@ -535,7 +535,7 @@ e_addressbook_send_card_list (GList *cards, EAddressbookDisposition disposition) 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