mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-07-06 17:27:06 +02: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:
@@ -212,7 +212,7 @@ _constant()
|
||||
try {
|
||||
RETVAL = THIS->output_filepath(path);
|
||||
} catch (std::exception& e) {
|
||||
croak(e.what());
|
||||
croak("%s\n", e.what());
|
||||
}
|
||||
%};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user