aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2004-06-24 06:59:21 +0800
committerHans Petter <hansp@src.gnome.org>2004-06-24 06:59:21 +0800
commit70f85e57b5c485b0cb03d278c6d04a1f042842a4 (patch)
tree5589a686ad89eac7966a1106bd12e0f1fc46906c /addressbook/gui
parent54a5d78f7876c7ebbe6e973a7d0321efb48128e0 (diff)
downloadgsoc2013-evolution-70f85e57b5c485b0cb03d278c6d04a1f042842a4.tar.gz
gsoc2013-evolution-70f85e57b5c485b0cb03d278c6d04a1f042842a4.tar.zst
gsoc2013-evolution-70f85e57b5c485b0cb03d278c6d04a1f042842a4.zip
use memcpy not strcpy to copy to memory buffer. Fixes a UMW. See #60532.
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. svn path=/trunk/; revision=26486
Diffstat (limited to 'addressbook/gui')
-rw-r--r--addressbook/gui/widgets/eab-gui-util.c2
1 files changed, 1 insertions, 1 deletions
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,