diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2011-06-23 05:56:33 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2011-06-23 05:56:33 +0000 |
commit | 3b0cb0f4839a6506492591dd8e5aa3392e9f9aab (patch) | |
tree | f2727f2f7ad7a8e63e76b111f81587ffd5cff34f /src/summaryview.c | |
parent | d21dbf8d17ba3c94ea2db9cc85b0de84a29fc714 (diff) |
fixed a typo. code cleanup.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@2907 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/summaryview.c')
-rw-r--r-- | src/summaryview.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/summaryview.c b/src/summaryview.c index 21c3b1b7..4543cd76 100644 --- a/src/summaryview.c +++ b/src/summaryview.c @@ -1995,11 +1995,11 @@ static void summary_update_display_state(SummaryView *summaryview, static guint attract_hash_func(gconstpointer key) { - gchar *str; + gchar str[BUFFSIZE]; gchar *p; guint h; - Xstrdup_a(str, (const gchar *)key, return 0); + strncpy2(str, (const gchar *)key, sizeof(str)); trim_subject_for_compare(str); p = str; @@ -2417,9 +2417,9 @@ static void summary_set_row(SummaryView *summaryview, GtkTreeIter *iter, else date_s = _("(No Date)"); if (prefs_common.swap_from && msginfo->from && msginfo->to) { - gchar *from; + gchar from[BUFFSIZE]; - Xstrdup_a(from, msginfo->from, return); + strncpy2(from, msginfo->from, sizeof(from)); extract_address(from); if (account_address_exist(from)) sw_from_s = g_strconcat("-->", msginfo->to, NULL); @@ -3764,7 +3764,7 @@ void summary_add_address(SummaryView *summaryview) { GtkTreeIter iter; MsgInfo *msginfo = NULL; - gchar *from; + gchar from[BUFFSIZE]; if (!summaryview->selected) return; @@ -3774,7 +3774,7 @@ void summary_add_address(SummaryView *summaryview) return; GET_MSG_INFO(msginfo, &iter); - Xstrdup_a(from, msginfo->from, return); + strncpy2(from, msginfo->from, sizeof(from)); eliminate_address_comment(from); extract_address(from); addressbook_add_contact(msginfo->fromname, from, NULL); |