Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/engine/engine_io.c
Original file line number Diff line number Diff line change
Expand Up @@ -529,6 +529,9 @@ void mj_saveModel(const mjModel* m, const char* filename, void* buffer, int buff
}

if (fp) {
if (ferror(fp)) {
mju_warning("Error writing to file '%s'", filename);
}
fclose(fp);
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/ui/ui_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1894,7 +1894,7 @@ static void shortcuthelp(mjrRect r, int modifier, int shortcut,
}

// combine
strcat(text, key);
mjSTRNCAT(text, key);

// make rectangle for shortcut
int g_textver = SCL(ui->spacing.textver, con);
Expand Down