aboutsummaryrefslogtreecommitdiffstats
path: root/calendar
diff options
context:
space:
mode:
authorFederico Mena Quintero <federico@ximian.com>2001-10-31 04:19:42 +0800
committerFederico Mena Quintero <federico@src.gnome.org>2001-10-31 04:19:42 +0800
commitefe4fc5ee64497b27cef6aff8d573cafe6f418a3 (patch)
tree7247ad8c7f0f22605c92bf18578d243a884b7e42 /calendar
parent6922ceef9e0b05a3329ca0e7cfcbca68e29f9144 (diff)
downloadgsoc2013-evolution-efe4fc5ee64497b27cef6aff8d573cafe6f418a3.tar
gsoc2013-evolution-efe4fc5ee64497b27cef6aff8d573cafe6f418a3.tar.gz
gsoc2013-evolution-efe4fc5ee64497b27cef6aff8d573cafe6f418a3.tar.bz2
gsoc2013-evolution-efe4fc5ee64497b27cef6aff8d573cafe6f418a3.tar.lz
gsoc2013-evolution-efe4fc5ee64497b27cef6aff8d573cafe6f418a3.tar.xz
gsoc2013-evolution-efe4fc5ee64497b27cef6aff8d573cafe6f418a3.tar.zst
gsoc2013-evolution-efe4fc5ee64497b27cef6aff8d573cafe6f418a3.zip
Allocate enough space for the string! (was missing the null terminator)
2001-10-30 Federico Mena Quintero <federico@ximian.com> * gui/itip-utils.c (itip_send_comp): Allocate enough space for the string! (was missing the null terminator) Possibly fixes #13924. Thanks a *LOT* to Michael Zucchi for running this through Purify. svn path=/trunk/; revision=14477
Diffstat (limited to 'calendar')
-rw-r--r--calendar/ChangeLog6
-rw-r--r--calendar/gui/itip-utils.c4
2 files changed, 8 insertions, 2 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog
index a699e1e758..ef061b0b42 100644
--- a/calendar/ChangeLog
+++ b/calendar/ChangeLog
@@ -1,3 +1,9 @@
+2001-10-30 Federico Mena Quintero <federico@ximian.com>
+
+ * gui/itip-utils.c (itip_send_comp): Allocate enough space for the
+ string! (was missing the null terminator) Possibly fixes #13924.
+ Thanks a *LOT* to Michael Zucchi for running this through Purify.
+
2001-10-30 JP Rosevear <jpr@ximian.com>
* gui/e-meeting-time-sel-item.c
diff --git a/calendar/gui/itip-utils.c b/calendar/gui/itip-utils.c
index e6be9ccef7..013787ee39 100644
--- a/calendar/gui/itip-utils.c
+++ b/calendar/gui/itip-utils.c
@@ -718,9 +718,9 @@ itip_send_comp (CalComponentItipMethod method, CalComponent *send_comp)
ical_string = comp_string (method, comp);
attach_data = GNOME_Evolution_Composer_AttachmentData__alloc ();
- attach_data->_length = strlen (ical_string);
+ attach_data->_length = strlen (ical_string) + 1;
attach_data->_maximum = attach_data->_length;
- attach_data->_buffer = CORBA_sequence_CORBA_char_allocbuf (attach_data->_length);
+ attach_data->_buffer = CORBA_sequence_CORBA_char_allocbuf (attach_data->_length);
strcpy (attach_data->_buffer, ical_string);
GNOME_Evolution_Composer_attachData (composer_server,