From 7171f9ebc5cf23226b216ac84d6618cf7cd3d06b Mon Sep 17 00:00:00 2001 From: Andrej Kacian Date: Mon, 27 Jul 2015 13:12:59 +0200 Subject: [PATCH] Correct handling of RFC3339 format with second fraction. Patch by Darko Koruga. --- src/procheader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.25.1