[evolution] Use large-enough buffer in e_calendar_item_draw_day_numbers()
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] Use large-enough buffer in e_calendar_item_draw_day_numbers()
- Date: Wed, 27 Sep 2017 14:01:22 +0000 (UTC)
commit 0ce5db4d085098abbe7bceac8cba65a232daff58
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 2333218..3e9692b 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]