aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2002-10-02 02:04:46 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2002-10-02 02:04:46 +0800
commit7bbdb47dd5af50c7690411ee3111855015f935c2 (patch)
tree1d0016725c10694d1ea68a813310924bfc2495fb
parentb48599b701d22e5dff77c1d94dd4e0059a922c37 (diff)
downloadgsoc2013-evolution-7bbdb47dd5af50c7690411ee3111855015f935c2.tar
gsoc2013-evolution-7bbdb47dd5af50c7690411ee3111855015f935c2.tar.gz
gsoc2013-evolution-7bbdb47dd5af50c7690411ee3111855015f935c2.tar.bz2
gsoc2013-evolution-7bbdb47dd5af50c7690411ee3111855015f935c2.tar.lz
gsoc2013-evolution-7bbdb47dd5af50c7690411ee3111855015f935c2.tar.xz
gsoc2013-evolution-7bbdb47dd5af50c7690411ee3111855015f935c2.tar.zst
gsoc2013-evolution-7bbdb47dd5af50c7690411ee3111855015f935c2.zip
Use strtol when decoding the timezone (since it can be negative) and don't
2002-10-01 Jeffrey Stedfast <fejj@ximian.com> * providers/imap/camel-imap-folder.c (decode_internaldate): Use strtol when decoding the timezone (since it can be negative) and don't forget to increment inptr to the start of the time (ie, don't leave inptr pointing to the year when decoding the hour:min:sec). svn path=/trunk/; revision=18283
-rw-r--r--camel/ChangeLog8
-rw-r--r--camel/providers/imap/camel-imap-folder.c3
2 files changed, 10 insertions, 1 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog
index 6433005cc8..c11375dcf1 100644
--- a/camel/ChangeLog
+++ b/camel/ChangeLog
@@ -1,3 +1,11 @@
+2002-10-01 Jeffrey Stedfast <fejj@ximian.com>
+
+ * providers/imap/camel-imap-folder.c (decode_internaldate): Use
+ strtol when decoding the timezone (since it can be negative) and
+ don't forget to increment inptr to the start of the time (ie,
+ don't leave inptr pointing to the year when decoding the
+ hour:min:sec).
+
2002-09-30 Jeffrey Stedfast <fejj@ximian.com>
Fixes bug #31456.
diff --git a/camel/providers/imap/camel-imap-folder.c b/camel/providers/imap/camel-imap-folder.c
index 33494d975c..fda6701693 100644
--- a/camel/providers/imap/camel-imap-folder.c
+++ b/camel/providers/imap/camel-imap-folder.c
@@ -2076,6 +2076,7 @@ decode_internaldate (const unsigned char *in)
tm.tm_year = n - 1900;
+ inptr = buf + 1;
if (!decode_time (&inptr, &hour, &min, &sec))
return (time_t) -1;
@@ -2083,7 +2084,7 @@ decode_internaldate (const unsigned char *in)
tm.tm_min = min;
tm.tm_sec = sec;
- n = strtoul (inptr, NULL, 10);
+ n = strtol (inptr, NULL, 10);
date = e_mktime_utc (&tm);