diff options
author | Frederic Culot <calcurse@culot.org> | 2006-12-19 08:14:02 +0000 |
---|---|---|
committer | Frederic Culot <calcurse@culot.org> | 2006-12-19 08:14:02 +0000 |
commit | 5d131abb13f4d21aa16206533e5bba28236cbf42 (patch) | |
tree | b13f211ab6dde73fcb35c8445105407609de0e45 /src | |
parent | a30f0132cd85b0daea45642be1d3a0dfbc03fede (diff) | |
download | calcurse-5d131abb13f4d21aa16206533e5bba28236cbf42.tar.gz calcurse-5d131abb13f4d21aa16206533e5bba28236cbf42.zip |
bugfix in label length
Diffstat (limited to 'src')
-rwxr-xr-x | src/calcurse.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/calcurse.c b/src/calcurse.c index c3f1b3e..536b005 100755 --- a/src/calcurse.c +++ b/src/calcurse.c @@ -1,4 +1,4 @@ -/* $calcurse: calcurse.c,v 1.30 2006/12/15 15:26:57 culot Exp $ */ +/* $calcurse: calcurse.c,v 1.31 2006/12/19 08:14:02 culot Exp $ */ /* * Calcurse - text-based organizer @@ -712,17 +712,17 @@ void get_date(void) /* Create all the windows */ void init_wins(void) { - char label[80]; + char label[MAX_LENGTH]; /* Create the three main windows plus the status bar. */ cwin = newwin(nl_cal, nc_cal, y_cal, x_cal); - snprintf(label, 9, _("Calendar")); + snprintf(label, MAX_LENGTH, _("Calendar")); win_show(cwin, label); awin = newwin(nl_app, nc_app, y_app, x_app); - snprintf(label, 13, _("Appointments")); + snprintf(label, MAX_LENGTH, _("Appointments")); win_show(awin, label); twin = newwin(nl_tod, nc_tod, y_tod, x_tod); - snprintf(label, 5, _("ToDo")); + snprintf(label, MAX_LENGTH, _("ToDo")); win_show(twin, label); swin = newwin(nl_bar, nc_bar, y_bar, x_bar); |