diff options
author | Frederic Culot <calcurse@culot.org> | 2006-11-02 13:42:48 +0000 |
---|---|---|
committer | Frederic Culot <calcurse@culot.org> | 2006-11-02 13:42:48 +0000 |
commit | 725c1b1030de7dcdfcd0eda78df75408efa4973b (patch) | |
tree | b255aef1969e2d0dbee31e9b6984a32779839ef6 /src | |
parent | f9709c4aa3d2d7fb1d0c863dd262b1dd7fe90f37 (diff) | |
download | calcurse-725c1b1030de7dcdfcd0eda78df75408efa4973b.tar.gz calcurse-725c1b1030de7dcdfcd0eda78df75408efa4973b.zip |
call to getstring() updated
Diffstat (limited to 'src')
-rwxr-xr-x | src/calendar.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/calendar.c b/src/calendar.c index 7cc71ed..226281c 100755 --- a/src/calendar.c +++ b/src/calendar.c @@ -1,4 +1,4 @@ -/* $calcurse: calendar.c,v 1.2 2006/10/28 10:33:15 culot Exp $ */ +/* $calcurse: calendar.c,v 1.3 2006/11/02 13:42:48 culot Exp $ */ /* * Calcurse - text-based organizer @@ -185,7 +185,8 @@ void goto_day(int colr, int day, int month, int year, int *sel_day, int *sel_month, int *sel_year) { - char selected_day[50] = ""; +#define LDAY 11 + char selected_day[LDAY] = ""; int dday, dmonth, dyear; int wrong_day = 0; char *mesg_line1 = _("The day you entered is not valid"); @@ -194,8 +195,8 @@ goto_day(int colr, int day, int month, int year, while (wrong_day != 1) { status_mesg(request_date, ""); - if (getstring(swin, colr, selected_day, 0, 1) == 0) // go to today - { + if (getstring(swin, colr, selected_day, LDAY, 0, 1) == 0) { + // go to today *sel_day = day; *sel_month = month; *sel_year = year; |