diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2005-03-18 04:58:45 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2005-03-18 04:58:45 +0000 |
commit | d391fd2c9f96506e4341d6e635b88b27c7e7409e (patch) | |
tree | 97994d9bbf006f1bb890e57b647e1f72c91f8471 | |
parent | 006ceae3848f96f179e7aafdc02f40263477f265 (diff) |
fixed re-edit crash.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@183 ee746299-78ed-0310-b773-934348b2243d
-rw-r--r-- | AUTHORS | 1 | ||||
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | ChangeLog.ja | 6 | ||||
-rw-r--r-- | src/account.c | 3 |
4 files changed, 15 insertions, 1 deletions
@@ -119,3 +119,4 @@ contributors (beside the above; based on Changelog) Sergey Pinaev Hiroyuki Ikezoe mori + Michael Schwendt @@ -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 { |