mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-10-20 23:31:13 -06:00
Fix format-security violations (#802)
croak() expects printf-style format strings. Calling croak(e.what()) directly causes compilations to fail with -Werror=format-security
This commit is contained in:
parent
86b79f89ad
commit
a32281c268
3 changed files with 4 additions and 4 deletions
|
@ -23,7 +23,7 @@
|
|||
try {
|
||||
THIS->do_export(print, path);
|
||||
} catch (std::exception& e) {
|
||||
croak(e.what());
|
||||
croak("%s\n", e.what());
|
||||
}
|
||||
%};
|
||||
void do_export_w_preview(Print *print, const char *path, GCodePreviewData *preview_data)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue