mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-14 08:38:45 +00:00
SrmRideFile: don't truncate comment
last character in comment was truncated due to a bad string termination.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user