talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit 7171f9ebc5cf23226b216ac84d6618cf7cd3d06b
parent b05f232613b64f6aea064d0545223082f60de7fb
Author: Andrej Kacian <ticho@claws-mail.org>
Date:   Mon, 27 Jul 2015 13:12:59 +0200

Correct handling of RFC3339 format with second fraction.

Patch by Darko Koruga.

Diffstat:
Msrc/procheader.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/procheader.c b/src/procheader.c @@ -841,7 +841,7 @@ static gint procheader_scan_date_string(const gchar *str, *weekday = '\0'; /* RFC3339 subset, with fraction of second */ - result = sscanf(str, "%4d-%2d-%2d%c%2d:%2d:%2d.%1d%6s", + result = sscanf(str, "%4d-%2d-%2d%c%2d:%2d:%2d.%d%6s", year, &month_n, day, &sep1, hh, mm, ss, &secfract, zonestr); debug_print("str |%s|, result %d\n", str, result); if (result == 9