diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2002-10-02 02:04:46 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2002-10-02 02:04:46 +0800 |
commit | 7bbdb47dd5af50c7690411ee3111855015f935c2 (patch) | |
tree | 1d0016725c10694d1ea68a813310924bfc2495fb /camel/providers | |
parent | b48599b701d22e5dff77c1d94dd4e0059a922c37 (diff) | |
download | gsoc2013-evolution-7bbdb47dd5af50c7690411ee3111855015f935c2.tar.gz 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
Diffstat (limited to 'camel/providers')
-rw-r--r-- | camel/providers/imap/camel-imap-folder.c | 3 |
1 files changed, 2 insertions, 1 deletions
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); |