aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook
diff options
context:
space:
mode:
Diffstat (limited to 'addressbook')
-rw-r--r--addressbook/ChangeLog5
-rw-r--r--addressbook/gui/widgets/e-minicard.c6
2 files changed, 8 insertions, 3 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog
index f59f5c09c0..96a7411b77 100644
--- a/addressbook/ChangeLog
+++ b/addressbook/ChangeLog
@@ -1,3 +1,8 @@
+2007-07-27 Hiroyuki Ikezoe <poincare@ikezoe.net>
+
+ * gui/widgets/e-minicard.c: (add_email_field): Use g_strdup() instead
+ of g_strdup_printf() for duplication of a string
+
2007-07-26 Hiroyuki Ikezoe <poincare@ikezoe.net>
* gui/contact-editor/e-contact-editor.c:
diff --git a/addressbook/gui/widgets/e-minicard.c b/addressbook/gui/widgets/e-minicard.c
index 8fd4362fbf..32d9c03453 100644
--- a/addressbook/gui/widgets/e-minicard.c
+++ b/addressbook/gui/widgets/e-minicard.c
@@ -846,13 +846,13 @@ add_email_field (EMinicard *e_minicard, GList *email_list, gdouble left_width, i
group = GNOME_CANVAS_GROUP( e_minicard );
for (l=email_list, le=emails; l!=NULL && count < limit && le!=NULL; l = l->next, le=le->next) {
- gchar *tmp;
+ const gchar *tmp;
tmp = get_email_location ((EVCardAttribute *) l->data);
if (tmp)
- name = g_strdup_printf("%s:", tmp);
+ name = g_strdup_printf ("%s:", tmp);
else
- name = g_strdup_printf("");
+ name = g_strdup ("");
string = e_text_to_html (le->data, 0);
new_item = e_minicard_label_new(group);