From 0a1f5ca4b37c702a184bb8223fb4206f62b9f605 Mon Sep 17 00:00:00 2001 From: Hiroyuki Ikezoe Date: Fri, 27 Jul 2007 05:55:38 +0000 Subject: Use g_strdup() instead of g_strdup_printf() for duplication of a string 2007-07-27 Hiroyuki Ikezoe * gui/widgets/e-minicard.c: (add_email_field): Use g_strdup() instead of g_strdup_printf() for duplication of a string svn path=/trunk/; revision=33855 --- addressbook/ChangeLog | 5 +++++ addressbook/gui/widgets/e-minicard.c | 6 +++--- 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 + + * 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 * 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); -- cgit v1.2.3