aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/itip-utils.c
diff options
context:
space:
mode:
authorRodrigo Moya <rodrigo@ximian.com>2003-08-22 00:33:42 +0800
committerRodrigo Moya <rodrigo@src.gnome.org>2003-08-22 00:33:42 +0800
commit8536a2be55812f0042b1a440767e209c88ce092a (patch)
tree031a402d7e0f00fcc7f06ed2778b27cff6831148 /calendar/gui/itip-utils.c
parent8cb1ce04ac5efcc71680e8da2843535244fd2ec3 (diff)
downloadgsoc2013-evolution-8536a2be55812f0042b1a440767e209c88ce092a.tar.gz
gsoc2013-evolution-8536a2be55812f0042b1a440767e209c88ce092a.tar.zst
gsoc2013-evolution-8536a2be55812f0042b1a440767e209c88ce092a.zip
use a 'char **' for the 'error_msg' argument, instead of a fixed size
2003-08-21 Rodrigo Moya <rodrigo@ximian.com> * cal-client/cal-client.[ch] (cal_client_send_object): use a 'char **' for the 'error_msg' argument, instead of a fixed size string. * gui/itip-utils.c (comp_server_send): pass the correct parameter to cal_client_send_object. svn path=/trunk/; revision=22326
Diffstat (limited to 'calendar/gui/itip-utils.c')
-rw-r--r--calendar/gui/itip-utils.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/calendar/gui/itip-utils.c b/calendar/gui/itip-utils.c
index aea984cb2e..366261ecff 100644
--- a/calendar/gui/itip-utils.c
+++ b/calendar/gui/itip-utils.c
@@ -530,11 +530,11 @@ comp_server_send (CalComponentItipMethod method, CalComponent *comp, CalClient *
{
CalClientSendResult result;
icalcomponent *top_level, *new_top_level = NULL;
- char error_msg[256];
+ char *error_msg;
gboolean retval = TRUE;
top_level = comp_toplevel_with_zones (method, comp, client, zones);
- result = cal_client_send_object (client, top_level, &new_top_level, users, error_msg);
+ result = cal_client_send_object (client, top_level, &new_top_level, users, &error_msg);
if (result == CAL_CLIENT_SEND_SUCCESS) {
icalcomponent *ical_comp;
@@ -546,6 +546,7 @@ comp_server_send (CalComponentItipMethod method, CalComponent *comp, CalClient *
} else if (result == CAL_CLIENT_SEND_BUSY) {
e_notice (NULL, GTK_MESSAGE_ERROR, error_msg);
+ g_free (error_msg);
retval = FALSE;
}