aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2005-03-18 04:58:45 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2005-03-18 04:58:45 +0000
commitd391fd2c9f96506e4341d6e635b88b27c7e7409e (patch)
tree97994d9bbf006f1bb890e57b647e1f72c91f8471
parent006ceae3848f96f179e7aafdc02f40263477f265 (diff)
fixed re-edit crash.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@183 ee746299-78ed-0310-b773-934348b2243d
-rw-r--r--AUTHORS1
-rw-r--r--ChangeLog6
-rw-r--r--ChangeLog.ja6
-rw-r--r--src/account.c3
4 files changed, 15 insertions, 1 deletions
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
{