aboutsummaryrefslogtreecommitdiffstats
path: root/libcontacts_parse_contact.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2021-04-11 06:25:35 +0200
committerMattias Andrée <maandree@kth.se>2021-04-11 06:25:35 +0200
commitf9f37dcae886fcab8b162620a4ec5652ab2a5ead (patch)
tree9bd150d3f2fb9b8f7c44d3b62b175f2ae79c06ec /libcontacts_parse_contact.c
parentReorder things in libcontacts_same_number and fix an error (diff)
downloadlibcontacts-f9f37dcae886fcab8b162620a4ec5652ab2a5ead.tar.gz
libcontacts-f9f37dcae886fcab8b162620a4ec5652ab2a5ead.tar.bz2
libcontacts-f9f37dcae886fcab8b162620a4ec5652ab2a5ead.tar.xz
Fix birthday formatting and parsing
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'libcontacts_parse_contact.c')
-rw-r--r--libcontacts_parse_contact.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcontacts_parse_contact.c b/libcontacts_parse_contact.c
index 8970afd..e0091f8 100644
--- a/libcontacts_parse_contact.c
+++ b/libcontacts_parse_contact.c
@@ -438,7 +438,7 @@ libcontacts_parse_contact(char *data, struct libcontacts_contact *contact)
contact->birthday->month = uc;
} else if (TEST(unindent(p), "DAY") && !contact->birthday->day && (uc = getposuchar(p))) {
contact->birthday->day = uc;
- } else if (!strcmp(p, "EARLY")) {
+ } else if (!strcmp(unindent(p), "EARLY")) {
contact->birthday->before_on_common = 1;
} else {
if (addstr(&contact->birthday->unrecognised_data, unindent(p)))