From 8deab1c9ca35ecfe49449723b3c33db54651d713 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Thu, 4 Jan 2018 17:36:22 +0100 Subject: [PATCH] 6 + the leading A of course... --- 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 47150439..097202e6 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 < 6 || line[0] != 'A') + if (len < 7 || line[0] != 'A') return false; for (int i = 1; i < 7; i++)