aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorFrederic Culot <calcurse@culot.org>2006-08-19 14:57:46 +0000
committerFrederic Culot <calcurse@culot.org>2006-08-19 14:57:46 +0000
commit38deeac2aa88d66fbf84f53d2f715f2e1295d536 (patch)
treeee3b2e440295fe536fe9617760e63d4081ff885a /src
parentc7d018ee4b878a6fd9d8ac3e1cf1d32c77350078 (diff)
downloadcalcurse-38deeac2aa88d66fbf84f53d2f715f2e1295d536.tar.gz
calcurse-38deeac2aa88d66fbf84f53d2f715f2e1295d536.zip
fixed a bug causing a fatal error when loading from file an endless recurrent item with non-repeated days
Diffstat (limited to 'src')
-rwxr-xr-xsrc/io.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/io.c b/src/io.c
index f19f4b5..f07ac4f 100755
--- a/src/io.c
+++ b/src/io.c
@@ -1,4 +1,4 @@
-/* $calcurse: io.c,v 1.2 2006/08/16 20:13:07 culot Exp $ */
+/* $calcurse: io.c,v 1.3 2006/08/19 14:57:46 culot Exp $ */
/*
* Calcurse - text-based organizer
@@ -330,9 +330,10 @@ void load_app()
}
if (is_appointment)
fscanf(data_file, " | "); // useless '|'
- } else if (c == '!') {
+ } else if (c == '!') { // endless item with exceptions
ungetc(c, data_file);
exc = recur_exc_scan(data_file);
+ until.tm_year = 0;
} else { /* NOT REACHED */
fputs(error, stderr);
exit(EXIT_FAILURE);