commit d02ea3969d2ea7051c74ac0547ee3b36f7705e20
parent f63df46575e8c15016729db64a5bd25ecdeca05e
Author: Tristan Chabredier <wwp@claws-mail.org>
Date: Wed, 19 Mar 2008 09:40:54 +0000
2008-03-19 [wwp] 3.3.1cvs32
* src/procheader.c
Sanity check.
Diffstat:
4 files changed, 10 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
@@ -1,3 +1,8 @@
+2008-03-19 [wwp] 3.3.1cvs32
+
+ * src/procheader.c
+ Sanity check.
+
2008-03-18 [colin] 3.3.1cvs31
* src/common/utils.c
diff --git a/PATCHSETS b/PATCHSETS
@@ -3266,3 +3266,4 @@
( cvs diff -u -r 1.395.2.362 -r 1.395.2.363 src/summaryview.c; ) > 3.3.1cvs29.patchset
( cvs diff -u -r 1.179.2.213 -r 1.179.2.214 src/imap.c; ) > 3.3.1cvs30.patchset
( cvs diff -u -r 1.36.2.135 -r 1.36.2.136 src/common/utils.c; cvs diff -u -r 1.20.2.59 -r 1.20.2.60 src/common/utils.h; ) > 3.3.1cvs31.patchset
+( cvs diff -u -r 1.47.2.46 -r 1.47.2.47 src/procheader.c; ) > 3.3.1cvs32.patchset
diff --git a/configure.ac b/configure.ac
@@ -11,7 +11,7 @@ MINOR_VERSION=3
MICRO_VERSION=1
INTERFACE_AGE=0
BINARY_AGE=0
-EXTRA_VERSION=31
+EXTRA_VERSION=32
EXTRA_RELEASE=
EXTRA_GTK2_VERSION=
diff --git a/src/procheader.c b/src/procheader.c
@@ -772,6 +772,9 @@ static gint procheader_scan_date_string(const gchar *str,
gchar zone1[3];
gchar zone2[3];
+ if (str == NULL)
+ return -1;
+
result = sscanf(str, "%10s %d %9s %d %2d:%2d:%2d %5s",
weekday, day, month, year, hh, mm, ss, zone);
if (result == 8) return 0;