aboutsummaryrefslogtreecommitdiffstats
path: root/agenda_entry.c
diff options
context:
space:
mode:
Diffstat (limited to 'agenda_entry.c')
-rw-r--r--agenda_entry.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/agenda_entry.c b/agenda_entry.c
index 985a8c0..8a68353 100644
--- a/agenda_entry.c
+++ b/agenda_entry.c
@@ -50,10 +50,10 @@ entry read_agenda_entry(char *agenda) {
lookahead = strstr(lookahead, "<");
char *date = (char *)malloc(tmp - lookahead + 1);
strncpy(date, lookahead+1, tmp - lookahead - 1);
- agenda_entry.date = extract_date(date);
+ agenda_entry.date = extract_date_from_string(date);
free(date);
} else {
- agenda_entry.date = (Date){ 0, 0, 0 };
+ agenda_entry.date = (Date){ 0, 0, 0, 0 };
}
return agenda_entry;