Handle phonebook text field with uppercase type

This commit is contained in:
Yang Gu 2009-07-27 14:06:34 +08:00 committed by Denis Kenzior
parent ca403d273e
commit a3991a36c3
1 changed files with 2 additions and 2 deletions

View File

@ -313,7 +313,7 @@ static DBusMessage *generate_export_entries_reply(struct ofono_modem *modem,
static gboolean need_merge(const char *text)
{
int len = strlen(text);
char c = text[len-1];
char c = tolower(text[len-1]);
if ((text[len-2] == '/') &&
((c == 'w') || (c == 'h') || (c == 'm') || (c == 'o')))
return TRUE;
@ -333,7 +333,7 @@ static void merge_field_number(GSList **l, const char *number, int type, char c)
pn->number = g_strdup(number);
pn->type = type;
switch (c) {
switch (tolower(c)) {
case 'w':
category = TEL_TYPE_WORK;
break;