1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-28 05:34:47 +01:00

A records must only be >= 6, not 9

Fixes #42
This commit is contained in:
Martin Tůma 2018-01-01 20:59:25 +01:00
parent e330abe180
commit 51e0f9a9c6

View File

@ -87,7 +87,7 @@ static bool readTimestamp(const char *data, QTime &time)
static bool readARecord(const char *line, qint64 len) static bool readARecord(const char *line, qint64 len)
{ {
if (len < 9 || line[0] != 'A') if (len < 6 || line[0] != 'A')
return false; return false;
for (int i = 1; i < 7; i++) for (int i = 1; i < 7; i++)