From 0ce5db4d085098abbe7bceac8cba65a232daff58 Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Wed, 27 Sep 2017 16:00:19 +0200 Subject: [PATCH] Use large-enough buffer in e_calendar_item_draw_day_numbers() Then sprintf() has enough room to store the output, which makes compiler happy too. --- src/e-util/e-calendar-item.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/e-util/e-calendar-item.c b/src/e-util/e-calendar-item.c index 2333218d2f..3e9692b041 100644 --- a/src/e-util/e-calendar-item.c +++ b/src/e-util/e-calendar-item.c @@ -1537,7 +1537,7 @@ e_calendar_item_draw_day_numbers (ECalendarItem *calitem, gboolean today, selected, has_focus, drop_target = FALSE; gboolean bold, italic, draw_day, finished = FALSE; gint today_year, today_month, today_mday, month_offset; - gchar buffer[9]; + gchar buffer[64]; gint day_style = 0; PangoContext *pango_context; PangoFontMetrics *font_metrics; -- 2.11.4.GIT