+2009-02-28 Tobias Mueller <tobiasmue@svn.gnome.org>
+
+ ** Fix for bug #573497
+
+ * libecal/e-cal.c: (E_CALENDAR_CHECK_STATUS):
+ Use "%s" as format-string to g_set_error.
+ * libecal/e-cal.c: (e_calendar_get_op), (e_calendar_remove_op),
+ (destroy_factories), (destroy_cal), (cal_alarm_address_cb),
+ (cal_ldap_attribute_cb), (cal_static_capabilities_cb),
+ (cal_opened_cb), (cal_removed_cb), (cal_object_created_cb):
+ Use "%s" as format-string to g_warning or g_message.
+ * libecal/e-cal-time-util.c: (isodate_from_time_t):
+ Use a fixed sized format-string instead of a const char*
+
2009-02-27 Milan Crha <mcrha@redhat.com>
** Fix for bug #572566
else { \
const char *msg; \
msg = e_cal_get_error_message ((status)); \
- g_set_error ((error), E_CALENDAR_ERROR, (status), msg, (status)); \
+ g_set_error ((error), E_CALENDAR_ERROR, (status), "%s", msg, (status)); \
return FALSE; \
} }G_STMT_END
e_calendar_get_op (ECal *ecal)
{
if (!ecal->priv->current_op) {
- g_warning (G_STRLOC ": Unexpected response");
+ g_warning ("%s", G_STRLOC ": Unexpected response");
return NULL;
}
e_calendar_remove_op (ECal *ecal, ECalendarOp *op)
{
if (ecal->priv->current_op != op)
- g_warning (G_STRLOC ": Cannot remove op, it's not current");
+ g_warning ("%s", G_STRLOC ": Cannot remove op, it's not current");
ecal->priv->current_op = NULL;
}
result = CORBA_Object_is_nil (factory, &ev);
if (BONOBO_EX (&ev)) {
- g_message (G_STRLOC ": could not see if a factory was nil");
+ g_message ("%s", G_STRLOC ": could not see if a factory was nil");
CORBA_exception_free (&ev);
continue;
CORBA_Object_release (factory, &ev);
if (BONOBO_EX (&ev)) {
- g_message (G_STRLOC ": could not release a factory");
+ g_message ("%s", G_STRLOC ": could not release a factory");
CORBA_exception_free (&ev);
}
}
CORBA_exception_init (&ev);
result = CORBA_Object_is_nil (priv->cal, &ev);
if (BONOBO_EX (&ev)) {
- g_message (G_STRLOC ": could not see if the "
+ g_message ("%s", G_STRLOC ": could not see if the "
"calendar ecal interface object was nil");
priv->cal = CORBA_OBJECT_NIL;
CORBA_exception_free (&ev);
op = e_calendar_get_op (ecal);
if (op == NULL) {
- g_warning (G_STRLOC ": Cannot find operation ");
+ g_warning ("%s", G_STRLOC ": Cannot find operation ");
return;
}
op = e_calendar_get_op (ecal);
if (op == NULL) {
- g_warning (G_STRLOC ": Cannot find operation ");
+ g_warning ("%s", G_STRLOC ": Cannot find operation ");
return;
}
op = e_calendar_get_op (ecal);
if (op == NULL) {
- g_warning (G_STRLOC ": Cannot find operation ");
+ g_warning ("%s", G_STRLOC ": Cannot find operation ");
return;
}
op = e_calendar_get_op (ecal);
if (op == NULL) {
- g_warning (G_STRLOC ": Cannot find operation ");
+ g_warning ("%s", G_STRLOC ": Cannot find operation ");
return;
}
op = e_calendar_get_op (ecal);
if (op == NULL) {
- g_warning (G_STRLOC ": Cannot find operation ");
+ g_warning ("%s", G_STRLOC ": Cannot find operation ");
return;
}
op = e_calendar_get_op (ecal);
if (op == NULL) {
- g_warning (G_STRLOC ": Cannot find operation ");
+ g_warning ("%s", G_STRLOC ": Cannot find operation ");
return;
}