From: Andrej Kacian Date: Mon, 27 Jul 2015 11:12:59 +0000 (+0200) Subject: Correct handling of RFC3339 format with second fraction. X-Git-Tag: 3.13.0~91 X-Git-Url: http://git.claws-mail.org/?p=claws.git;a=commitdiff_plain;h=7171f9ebc5cf23226b216ac84d6618cf7cd3d06b Correct handling of RFC3339 format with second fraction. Patch by Darko Koruga. --- diff --git a/src/procheader.c b/src/procheader.c index e5a54163e..98ecc0ca0 100644 --- 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