From bac4efc7ced9ec16f6cdc30959797d8fe3cffde1 Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Wed, 17 Oct 2012 14:40:59 +0200 Subject: Add format checker (in compile time) to e_notice() --- calendar/gui/itip-utils.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'calendar/gui') diff --git a/calendar/gui/itip-utils.c b/calendar/gui/itip-utils.c index 350fb5d850..b7b31dbf48 100644 --- a/calendar/gui/itip-utils.c +++ b/calendar/gui/itip-utils.c @@ -1123,11 +1123,8 @@ comp_server_send (ECalComponentItipMethod method, _("Unable to book a resource, the " "new event collides with some other.")); } else { - gchar *msg = g_strconcat ( - _("Unable to book a resource, error: "), - error->message, NULL); - e_notice (NULL, GTK_MESSAGE_ERROR, msg); - g_free (msg); + e_notice (NULL, GTK_MESSAGE_ERROR, + _("Unable to book a resource, error: %s"), error->message); } retval = FALSE; -- cgit v1.2.3