[evolution-patches] Fix for new_system_calendar crash
- From: Harish Krishnaswamy <kharish novell com>
- To: evo-patch <evolution-patches lists ximian com>
- Subject: [evolution-patches] Fix for new_system_calendar crash
- Date: Tue, 17 Feb 2004 14:22:38 +0530
hi,
This is a minor fix for new_system_calendar call crashing e-d-s due to
the parameters in the g_build_filename call not being terminated by
NULL...
AFAIK, this has not been filed in bugzilla before and i guess, there is
no need for it now :)
thanks,
harish
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution-data-server/calendar/ChangeLog,v
retrieving revision 1.191
diff -u -p -r1.191 ChangeLog
--- ChangeLog 12 Feb 2004 19:47:31 -0000 1.191
+++ ChangeLog 17 Feb 2004 08:47:57 -0000
@@ -1,3 +1,8 @@
+2004-02-17 Harish K <kharish novell com>
+ * libecal/e-cal.c :
+ (e_cal_new_system_calendar, e_cal_new_system_tasks) : arguments
+ to g_build_filename should be NULL terminated.
+
2004-02-12 Chris Toshok <toshok ximian com>
* backends/contacts/e-cal-backend-contacts.c (book_record_new):
Index: libecal/e-cal.c
===================================================================
RCS file: /cvs/gnome/evolution-data-server/calendar/libecal/e-cal.c,v
retrieving revision 1.44
diff -u -p -r1.44 e-cal.c
--- libecal/e-cal.c 6 Feb 2004 17:19:45 -0000 1.44
+++ libecal/e-cal.c 17 Feb 2004 08:47:59 -0000
@@ -1369,7 +1369,7 @@ e_cal_new_system_calendar (void)
ECal *ecal;
char *uri;
- uri = g_build_filename ("file://", g_get_home_dir (), ".evolution",
"calendar", "local", "system");
+ uri = g_build_filename ("file://", g_get_home_dir (), ".evolution",
"calendar", "local", "system", NULL);
ecal = e_cal_new_from_uri (uri, E_CAL_SOURCE_TYPE_EVENT);
g_free (uri);
@@ -1382,7 +1382,7 @@ e_cal_new_system_tasks (void)
ECal *ecal;
char *uri;
- uri = g_build_filename ("file://", g_get_home_dir (), ".evolution",
"tasks", "local", "system");
+ uri = g_build_filename ("file://", g_get_home_dir (), ".evolution",
"tasks", "local", "system", NULL);
ecal = e_cal_new_from_uri (uri, E_CAL_SOURCE_TYPE_EVENT);
g_free (uri);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]