diff options
Diffstat (limited to 'calendar/year-view.c')
-rw-r--r-- | calendar/year-view.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/calendar/year-view.c b/calendar/year-view.c index d4c2d218df..a3ae3ce647 100644 --- a/calendar/year-view.c +++ b/calendar/year-view.c @@ -101,7 +101,8 @@ gncal_year_view_new (int year) (gpointer *) yview); my_tm.tm_mon = i; - strftime(monthbuff, 40, "%B", &my_tm); + my_tm.tm_year = year; + strftime(monthbuff, sizeof (monthbuff)-1, "%B", &my_tm); label = gtk_label_new(monthbuff); gtk_container_add(GTK_CONTAINER(frame), vbox); |