[evolution-patches] addressbook, bug #60523, crash forwarding card




Simple fix.
--
Michael Zucchi <notzed ximian com>

Novell's Evolution and Free Software Developer
Index: addressbook/ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/addressbook/ChangeLog,v
retrieving revision 1.1774
diff -u -3 -r1.1774 ChangeLog
--- addressbook/ChangeLog	22 Jun 2004 22:40:38 -0000	1.1774
+++ addressbook/ChangeLog	23 Jun 2004 09:03:46 -0000
@@ -1,3 +1,9 @@
+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.
+
 2004-06-22  Hans Petter Jansson  <hpj ximian com>
 
 	* gui/contact-editor/contact-editor.glade: Name the labels.
Index: addressbook/gui/widgets/eab-gui-util.c
===================================================================
RCS file: /cvs/gnome/evolution/addressbook/gui/widgets/eab-gui-util.c,v
retrieving revision 1.23
diff -u -3 -r1.23 eab-gui-util.c
--- addressbook/gui/widgets/eab-gui-util.c	18 Jun 2004 00:02:10 -0000	1.23
+++ addressbook/gui/widgets/eab-gui-util.c	23 Jun 2004 09:03:46 -0000
@@ -880,7 +880,7 @@
 	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, 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]