aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/main.c
diff options
context:
space:
mode:
authorArturo Espinosa <unammx@src.gnome.org>1998-04-30 13:54:48 +0800
committerArturo Espinosa <unammx@src.gnome.org>1998-04-30 13:54:48 +0800
commitb4b63624248223bfad9c60ecbdc30614992e1765 (patch)
treee6cefae18183af12812c518d961ebdc21d4a75ed /calendar/gui/main.c
parent5c1c9710338cb7f3b29ed1eac1006bb95f39c048 (diff)
downloadgsoc2013-evolution-b4b63624248223bfad9c60ecbdc30614992e1765.tar
gsoc2013-evolution-b4b63624248223bfad9c60ecbdc30614992e1765.tar.gz
gsoc2013-evolution-b4b63624248223bfad9c60ecbdc30614992e1765.tar.bz2
gsoc2013-evolution-b4b63624248223bfad9c60ecbdc30614992e1765.tar.lz
gsoc2013-evolution-b4b63624248223bfad9c60ecbdc30614992e1765.tar.xz
gsoc2013-evolution-b4b63624248223bfad9c60ecbdc30614992e1765.tar.zst
gsoc2013-evolution-b4b63624248223bfad9c60ecbdc30614992e1765.zip
Fix for SM code, I was allocating less than needed (thanks to federico for quickly spotting my mistake) -mig
svn path=/trunk/; revision=202
Diffstat (limited to 'calendar/gui/main.c')
-rw-r--r--calendar/gui/main.c2
1 files changed, 1 insertions, 1 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;