aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHiroyuki Ikezoe <poincare@ikezoe.net>2007-07-27 13:55:38 +0800
committerHiroyuki Ikezoe <hiikezoe@src.gnome.org>2007-07-27 13:55:38 +0800
commit0a1f5ca4b37c702a184bb8223fb4206f62b9f605 (patch)
tree60f5f1e10be814e72a114518bf17159fefb85d14
parent90bc74a38d17d22dd20f43f4e7f803ca9bc22a77 (diff)
downloadgsoc2013-evolution-0a1f5ca4b37c702a184bb8223fb4206f62b9f605.tar.gz
gsoc2013-evolution-0a1f5ca4b37c702a184bb8223fb4206f62b9f605.tar.zst
gsoc2013-evolution-0a1f5ca4b37c702a184bb8223fb4206f62b9f605.zip
Use g_strdup() instead of g_strdup_printf() for duplication of a string
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 svn path=/trunk/; revision=33855
-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);