[evolution-data-server/openismus-work-master: 85/118] EBookBackendSqliteDB: Fixed an inconsistency in phone number matches.
- From: Tristan Van Berkom <tvb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server/openismus-work-master: 85/118] EBookBackendSqliteDB: Fixed an inconsistency in phone number matches.
- Date: Sat, 12 Oct 2013 02:02:06 +0000 (UTC)
commit 270d74983ecc1dc7e86810e3b39b22fcd407225a
Author: Tristan Van Berkom <tristanvb openismus com>
Date: Fri Oct 4 00:04:14 2013 +0200
EBookBackendSqliteDB: Fixed an inconsistency in phone number matches.
The phone number national number matching algoritm was hard coding
the country code length to 2, causing some random results.
.../libedata-book/e-book-backend-sqlitedb.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/addressbook/libedata-book/e-book-backend-sqlitedb.c
b/addressbook/libedata-book/e-book-backend-sqlitedb.c
index 84e7f91..84a512e 100644
--- a/addressbook/libedata-book/e-book-backend-sqlitedb.c
+++ b/addressbook/libedata-book/e-book-backend-sqlitedb.c
@@ -1416,7 +1416,7 @@ ixphone_compare_national (gpointer data,
if (sep2 != str2)
cmp = e_strcmp2n (country_code, strlen (country_code), str2, sep2 - str2);
} else if (sep2 == str2) {
- cmp = e_strcmp2n (str1, sep1 - str1, country_code, 2);
+ cmp = e_strcmp2n (str1, sep1 - str1, country_code, strlen (country_code));
} else {
/* Also compare the country code if the national number
* matches and both numbers have a country code. */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]