aboutsummaryrefslogtreecommitdiffstats
path: root/calendar
diff options
context:
space:
mode:
Diffstat (limited to 'calendar')
-rw-r--r--calendar/gui/main.c2
-rw-r--r--calendar/main.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/calendar/gui/main.c b/calendar/gui/main.c
index aab8c9947b..64b58cb1fc 100644
--- a/calendar/gui/main.c
+++ b/calendar/gui/main.c
@@ -553,7 +553,7 @@ session_save_state (GnomeClient *client, gint phase, GnomeRestartStyle save_styl
GnomeInteractStyle interact_style, gint fast, gpointer client_data)
{
char *sess_id;
- char **argv = (char **) g_malloc ((active_calendars * 4) + 2);
+ char **argv = (char **) g_malloc (sizeof (char *) * ((active_calendars * 4) + 3));
GList *l, *free_list = 0;
int i;
diff --git a/calendar/main.c b/calendar/main.c
index aab8c9947b..64b58cb1fc 100644
--- a/calendar/main.c
+++ b/calendar/main.c
@@ -553,7 +553,7 @@ session_save_state (GnomeClient *client, gint phase, GnomeRestartStyle save_styl
GnomeInteractStyle interact_style, gint fast, gpointer client_data)
{
char *sess_id;
- char **argv = (char **) g_malloc ((active_calendars * 4) + 2);
+ char **argv = (char **) g_malloc (sizeof (char *) * ((active_calendars * 4) + 3));
GList *l, *free_list = 0;
int i;