aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKidd Wang <kiddwang@src.gnome.org>2004-02-18 13:49:29 +0800
committerKidd Wang <kiddwang@src.gnome.org>2004-02-18 13:49:29 +0800
commit94e15c56b2496cfc3e1d6bcbd982578713eba505 (patch)
treebd2dfb21efbefec521053daed85d2c0c9d57a220
parenta6aebcca77456fe76527f4c2e400aed462f6fff3 (diff)
downloadgsoc2013-evolution-94e15c56b2496cfc3e1d6bcbd982578713eba505.tar.gz
gsoc2013-evolution-94e15c56b2496cfc3e1d6bcbd982578713eba505.tar.zst
gsoc2013-evolution-94e15c56b2496cfc3e1d6bcbd982578713eba505.zip
set the string length properly.
* gui/itip-utils.c: (itip_send_comp): set the string length properly. svn path=/trunk/; revision=24768
-rw-r--r--calendar/ChangeLog4
-rw-r--r--calendar/gui/itip-utils.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog
index b790d684d8..9863e61be8 100644
--- a/calendar/ChangeLog
+++ b/calendar/ChangeLog
@@ -1,3 +1,7 @@
+2004-02-18 Kidd Wang <kidd.wang@sun.com>
+
+ * gui/itip-utils.c: (itip_send_comp): set the string length properly.
+
2004-02-16 Rodrigo Moya <rodrigo@ximian.com>
* gui/alarm-notify/alarm-queue.c (tray_icon_clicked_cb): removed buggy
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,