diff options
author | Jesse Pavel <jpavel@src.gnome.org> | 2000-10-28 06:40:49 +0800 |
---|---|---|
committer | Jesse Pavel <jpavel@src.gnome.org> | 2000-10-28 06:40:49 +0800 |
commit | efaa78285cc2c7d790a6d48eba53759a048f1e49 (patch) | |
tree | 675f2bf63005bb05fdba90bcf793600f7a47e538 /calendar/gui | |
parent | ba3744e5c73066aeaf922d901dd8e4540e26d03a (diff) | |
download | gsoc2013-evolution-efaa78285cc2c7d790a6d48eba53759a048f1e49.tar gsoc2013-evolution-efaa78285cc2c7d790a6d48eba53759a048f1e49.tar.gz gsoc2013-evolution-efaa78285cc2c7d790a6d48eba53759a048f1e49.tar.bz2 gsoc2013-evolution-efaa78285cc2c7d790a6d48eba53759a048f1e49.tar.lz gsoc2013-evolution-efaa78285cc2c7d790a6d48eba53759a048f1e49.tar.xz gsoc2013-evolution-efaa78285cc2c7d790a6d48eba53759a048f1e49.tar.zst gsoc2013-evolution-efaa78285cc2c7d790a6d48eba53759a048f1e49.zip |
fixed problems in which I allocated CORBA
strings of 0 length, but then didn't NULL terminate them.
svn path=/trunk/; revision=6243
Diffstat (limited to 'calendar/gui')
-rw-r--r-- | calendar/gui/e-meeting-edit.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/calendar/gui/e-meeting-edit.c b/calendar/gui/e-meeting-edit.c index 55bfdd8a3b..76e5e90143 100644 --- a/calendar/gui/e-meeting-edit.c +++ b/calendar/gui/e-meeting-edit.c @@ -560,6 +560,7 @@ send_button_clicked_cb (GtkWidget *widget, gpointer data) recipient = &(to_list->_buffer[cntr]); recipient->name = CORBA_string_alloc (0); /* FIXME: we may want an actual name here. */ + recipient->name[0] = '\0'; recipient->address = CORBA_string_alloc (len); strcpy (recipient->address, cell_text); } @@ -584,6 +585,7 @@ send_button_clicked_cb (GtkWidget *widget, gpointer data) content_type = CORBA_string_alloc (strlen (tempstr)); strcpy (content_type, tempstr); filename = CORBA_string_alloc (0); + filename[0] = '\0'; sprintf (tempstr, "Calendar attachment"); description = CORBA_string_alloc (strlen (tempstr)); strcpy (description, tempstr); |