summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrederic Culot <calcurse@culot.org>2006-10-28 10:33:15 +0000
committerFrederic Culot <calcurse@culot.org>2006-10-28 10:33:15 +0000
commitf24d66497d05d831d41a5b558c71230cec821da4 (patch)
treea0e6095a95a35d359d20c0e16980ecd936642974
parentc4327e6d865f4353043a4082472cdcf13bf2261c (diff)
downloadcalcurse-f24d66497d05d831d41a5b558c71230cec821da4.tar.gz
calcurse-f24d66497d05d831d41a5b558c71230cec821da4.zip
getstring() call in goto_day() updated
-rwxr-xr-xsrc/calendar.c5
1 files 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;