From 8536a2be55812f0042b1a440767e209c88ce092a Mon Sep 17 00:00:00 2001 From: Rodrigo Moya Date: Thu, 21 Aug 2003 16:33:42 +0000 Subject: use a 'char **' for the 'error_msg' argument, instead of a fixed size 2003-08-21 Rodrigo Moya * 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 --- calendar/gui/itip-utils.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'calendar/gui/itip-utils.c') 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; } -- cgit v1.2.3