[evolution-data-server/openismus-work] sqlitedb: Use proper length of default country code
- From: Mathias Hasselmann <hasselmm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server/openismus-work] sqlitedb: Use proper length of default country code
- Date: Tue, 5 Mar 2013 13:31:11 +0000 (UTC)
commit 606b360c401062438445d24a68ea5ff56a96470d
Author: Mathias Hasselmann <mathias openismus com>
Date: Tue Mar 5 14:27:29 2013 +0100
sqlitedb: Use proper length of default country code
The default contry code in ixphone_compare_national() actually is
a variable length, nul terminated string.
.../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 6f1b73c..6abcc06 100644
--- a/addressbook/libedata-book/e-book-backend-sqlitedb.c
+++ b/addressbook/libedata-book/e-book-backend-sqlitedb.c
@@ -1211,7 +1211,7 @@ ixphone_compare_national (gpointer data,
if (cmp == 0) {
if (sep1 == str1) {
if (sep2 != str2)
- cmp = e_strcmp2n (country_code, 2, str2, 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);
} else {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]