diff options
author | Mattias Andrée <maandree@kth.se> | 2021-04-03 10:33:06 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2021-04-03 10:33:06 +0200 |
commit | 9fca48f29e571cd0c2c8e189068ea9469532de6c (patch) | |
tree | 5230df8d8e7f4fd0d59b79f96c42ecb901b5a327 /libcontacts_save_contact.c | |
parent | m (diff) | |
download | libcontacts-9fca48f29e571cd0c2c8e189068ea9469532de6c.tar.gz libcontacts-9fca48f29e571cd0c2c8e189068ea9469532de6c.tar.bz2 libcontacts-9fca48f29e571cd0c2c8e189068ea9469532de6c.tar.xz |
Fix bugs and warnings
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'libcontacts_save_contact.c')
-rw-r--r-- | libcontacts_save_contact.c | 2 |
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] = '-'; } |