From f24d66497d05d831d41a5b558c71230cec821da4 Mon Sep 17 00:00:00 2001 From: Frederic Culot Date: Sat, 28 Oct 2006 10:33:15 +0000 Subject: getstring() call in goto_day() updated --- src/calendar.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/calendar.c b/src/calendar.c index c147e47..7cc71ed 100755 --- a/src/calendar.c +++ b/src/calendar.c @@ -1,4 +1,4 @@ -/* $calcurse: calendar.c,v 1.1 2006/07/31 21:00:02 culot Exp $ */ +/* $calcurse: calendar.c,v 1.2 2006/10/28 10:33:15 culot Exp $ */ /* * Calcurse - text-based organizer @@ -194,8 +194,7 @@ goto_day(int colr, int day, int month, int year, while (wrong_day != 1) { status_mesg(request_date, ""); - getstring(swin, colr, selected_day, 0, 1); - if (strlen(selected_day) == 0) // go to today + if (getstring(swin, colr, selected_day, 0, 1) == 0) // go to today { *sel_day = day; *sel_month = month; -- cgit v1.2.3