aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--addressbook/ChangeLog5
-rw-r--r--addressbook/util/eab-book-util.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog
index 34c1ef772d..4c9e7dad20 100644
--- a/addressbook/ChangeLog
+++ b/addressbook/ChangeLog
@@ -1,3 +1,8 @@
+2005-01-11 Not Zed <NotZed@Ximian.com>
+
+ * util/eab-book-util.c (eab_name_and_email_query): cast length
+ specifier to int.
+
2005-01-10 Hans Petter Jansson <hpj@novell.com>
* gui/widgets/e-minicard.c (e_minicard_activate_editor): When spawning
diff --git a/addressbook/util/eab-book-util.c b/addressbook/util/eab-book-util.c
index 4978fa7b59..a1ff103eeb 100644
--- a/addressbook/util/eab-book-util.c
+++ b/addressbook/util/eab-book-util.c
@@ -108,7 +108,7 @@ eab_name_and_email_query (EBook *book,
while (*t && *t != '@')
++t;
if (*t == '@' && escaped_name) {
- email_query = g_strdup_printf ("(beginswith \"email\" \"%.*s@\")", t-escaped_email, escaped_email);
+ email_query = g_strdup_printf ("(beginswith \"email\" \"%.*s@\")", (int)(t-escaped_email), escaped_email);
} else {
email_query = g_strdup_printf ("(beginswith \"email\" \"%s\")", escaped_email);