aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrederic Culot <calcurse@culot.org>2007-04-14 18:46:12 +0000
committerFrederic Culot <calcurse@culot.org>2007-04-14 18:46:12 +0000
commit9e8689f58b4e217a4d86ee2ee11acc7adf15522a (patch)
treed5cc09628318cbe69ec5debb4c5d11a1e8898682
parente8ed23cd6069d749faaab3509e613e66ecc5eb43 (diff)
downloadcalcurse-9e8689f58b4e217a4d86ee2ee11acc7adf15522a.tar.gz
calcurse-9e8689f58b4e217a4d86ee2ee11acc7adf15522a.zip
bugfix: do not include '|' in item description while loading a recurrent
appointment with exceptions
-rwxr-xr-xsrc/io.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/io.c b/src/io.c
index 3700ad4..68170be 100755
--- a/src/io.c
+++ b/src/io.c
@@ -1,4 +1,4 @@
-/* $calcurse: io.c,v 1.14 2007/04/04 19:38:18 culot Exp $ */
+/* $calcurse: io.c,v 1.15 2007/04/14 18:46:12 culot Exp $ */
/*
* Calcurse - text-based organizer
@@ -633,7 +633,7 @@ load_app(void)
if (c == '!') {
ungetc(c, data_file);
exc = recur_exc_scan(data_file);
- fscanf(data_file, "} ");
+ c = getc(data_file);
} else {
ungetc(c, data_file);
fscanf(data_file, "} ");
@@ -641,6 +641,7 @@ load_app(void)
} else if (c == '!') { // endless item with exceptions
ungetc(c, data_file);
exc = recur_exc_scan(data_file);
+ c = getc(data_file);
until.tm_year = 0;
} else { /* NOT REACHED */
fputs(error, stderr);
@@ -657,11 +658,11 @@ load_app(void)
c = getc(data_file);
if (c == '!') {
ungetc(c, data_file);
- fscanf(data_file, "! ");
+ fscanf(data_file, " ! ");
state |= APOINT_NOTIFY;
} else {
ungetc(c, data_file);
- fscanf(data_file, "| ");
+ fscanf(data_file, " | ");
state = 0L;
}
if (is_recursive) {