From 51e0f9a9c6a04fef3a2d82fb2b064398c68bcf88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Mon, 1 Jan 2018 20:59:25 +0100 Subject: [PATCH] A records must only be >= 6, not 9 Fixes #42 --- src/data/igcparser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/data/igcparser.cpp b/src/data/igcparser.cpp index 9a18d9cd..47150439 100644 --- a/src/data/igcparser.cpp +++ b/src/data/igcparser.cpp @@ -87,7 +87,7 @@ static bool readTimestamp(const char *data, QTime &time) static bool readARecord(const char *line, qint64 len) { - if (len < 9 || line[0] != 'A') + if (len < 6 || line[0] != 'A') return false; for (int i = 1; i < 7; i++)