SrmRideFile: don't truncate comment

last character in comment was truncated due to a bad string termination.
This commit is contained in:
Rainer Clasen
2012-07-30 18:50:54 +02:00
parent 08be07b9aa
commit d19689d8f6

View File

@@ -133,7 +133,7 @@ RideFile *SrmFileReader::openRideFile(QFile &file, QStringList &errorStrings, QL
char comment[71];
in.readRawData(comment, sizeof(comment) - 1);
comment[commentlen - 1] = '\0';
comment[commentlen] = '\0';
result->setTag("Notes", QString(comment) );
result->setRecIntSecs(((double) recint1) / recint2);