diff options
Diffstat (limited to 'calendar/gui/itip-utils.c')
-rw-r--r-- | calendar/gui/itip-utils.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/calendar/gui/itip-utils.c b/calendar/gui/itip-utils.c index 9efd5debf3..19e3402969 100644 --- a/calendar/gui/itip-utils.c +++ b/calendar/gui/itip-utils.c @@ -916,10 +916,10 @@ itip_send_comp (ECalComponentItipMethod method, ECalComponent *send_comp, } attach_data = GNOME_Evolution_Composer_AttachmentData__alloc (); - attach_data->_length = strlen (ical_string) + 1; + attach_data->_length = strlen (ical_string); attach_data->_maximum = attach_data->_length; attach_data->_buffer = CORBA_sequence_CORBA_char_allocbuf (attach_data->_length); - strcpy (attach_data->_buffer, ical_string); + memcpy (attach_data->_buffer, ical_string, attach_data->_length); GNOME_Evolution_Composer_attachData (composer_server, content_type, filename, description, |