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/ChangeLog | 6 ++++++ addressbook/gui/widgets/e-addressbook-util.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog index 24a87ee8d6..4348e1dadd 100644 --- a/addressbook/ChangeLog +++ b/addressbook/ChangeLog @@ -1,3 +1,9 @@ +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) + 2003-08-12 Rodrigo Moya * backend/ebook/e-book.c (e_book_dispose): unref the 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