[evolution/gnome-3-26] Use large-enough buffer in e_calendar_item_draw_day_numbers()



commit 175166026ae101875b78cff410f241b522ee881f
Author: Milan Crha <mcrha redhat com>
Date:   Wed Sep 27 16:00:19 2017 +0200

    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 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/e-util/e-calendar-item.c b/src/e-util/e-calendar-item.c
index d70a0bb..c1b3553 100644
--- a/src/e-util/e-calendar-item.c
+++ b/src/e-util/e-calendar-item.c
@@ -1542,7 +1542,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;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]