creport: Clean up bugs, now saves (empty) reports to the SD successfully

This commit is contained in:
Michael Scire
2018-06-25 22:27:33 -06:00
parent 12236eae9e
commit d5b303f852
6 changed files with 14 additions and 7 deletions

View File

@@ -31,7 +31,7 @@ void CrashReport::SaveReport() {
}
/* Open report file. */
snprintf(report_path, sizeof(report_path) - 1, "sdmc:/atmosphere/crash reports/%016lx_%016lx.log", timestamp, process_info.title_id);
snprintf(report_path, sizeof(report_path) - 1, "sdmc:/atmosphere/crash reports/%020lu_%016lx.log", timestamp, process_info.title_id);
FILE *f_report = fopen(report_path, "w");
if (f_report == NULL) {
return;