aboutsummaryrefslogtreecommitdiffstats
path: root/libcontacts_save_contact.c
diff options
context:
space:
mode:
Diffstat (limited to 'libcontacts_save_contact.c')
-rw-r--r--libcontacts_save_contact.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcontacts_save_contact.c b/libcontacts_save_contact.c
index 5d2fcd7..5e27b85 100644
--- a/libcontacts_save_contact.c
+++ b/libcontacts_save_contact.c
@@ -29,7 +29,7 @@ libcontacts_save_contact(struct libcontacts_contact *contact, const struct passw
goto fail;
for (p = 0; contact->id[p]; p++) {
if (isalpha(contact->id[p]))
- contact->id[p] = tolower(contact->id[p]);
+ contact->id[p] = (char)tolower(contact->id[p]);
else
contact->id[p] = '-';
}