From d391fd2c9f96506e4341d6e635b88b27c7e7409e Mon Sep 17 00:00:00 2001 From: hiro Date: Fri, 18 Mar 2005 04:58:45 +0000 Subject: fixed re-edit crash. git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@183 ee746299-78ed-0310-b773-934348b2243d --- AUTHORS | 1 + ChangeLog | 6 ++++++ ChangeLog.ja | 6 ++++++ src/account.c | 3 ++- 4 files changed, 15 insertions(+), 1 deletion(-) diff --git a/AUTHORS b/AUTHORS index 7f141d02..ca24f748 100644 --- a/AUTHORS +++ b/AUTHORS @@ -119,3 +119,4 @@ contributors (beside the above; based on Changelog) Sergey Pinaev Hiroyuki Ikezoe mori + Michael Schwendt diff --git a/ChangeLog b/ChangeLog index 275ef5dc..4640426f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2005-03-18 + + * src/account.c: account_find_from_message_file(): added missing + NULL terminator of the HeaderEntry array which had introduced + crash on re-edit (thanks to Michael Schwendt). + 2005-03-17 * src/utils.c: strncpy2(): optimized based on Alfons' code. diff --git a/ChangeLog.ja b/ChangeLog.ja index 4fbf5b09..95ff9a63 100644 --- a/ChangeLog.ja +++ b/ChangeLog.ja @@ -1,3 +1,9 @@ +2005-03-18 + + * src/account.c: account_find_from_message_file(): HeaderEntry 配列 + の NULL 終端が抜けていたのを追加(再編集時にクラッシュを起こして + いた) (Michael Schwendt さん thanks)。 + 2005-03-17 * src/utils.c: strncpy2(): Alfons さんのコードに基づいて最適化。 diff --git a/src/account.c b/src/account.c index d745426c..b4861cad 100644 --- a/src/account.c +++ b/src/account.c @@ -256,7 +256,8 @@ PrefsAccount *account_find_from_message_file(const gchar *file) { static HeaderEntry hentry[] = {{"From:", NULL, FALSE}, {"X-Sylpheed-Account-Id:", NULL, FALSE}, - {"AID:", NULL, FALSE}}; + {"AID:", NULL, FALSE}, + {NULL, NULL, FALSE}}; enum { -- cgit v1.2.3