mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 16:18:42 +00:00
csv output uses .csv extension instead of .dat
This commit is contained in:
@@ -154,10 +154,14 @@ main(int argc, char *argv[])
|
||||
strcpy(outname, inname);
|
||||
for (i = strlen(outname); i >= 0; --i)
|
||||
if (outname[i] == '.') break;
|
||||
if (i >= 0)
|
||||
strcpy(outname + i + 1, "dat");
|
||||
else
|
||||
strcpy(outname + strlen(outname), ".dat");
|
||||
if (i >= 0) {
|
||||
strcpy(outname + i + 1,
|
||||
csv_output ? "csv" : "dat");
|
||||
}
|
||||
else {
|
||||
strcpy(outname + strlen(outname),
|
||||
csv_output ? ".csv" : ".dat");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user