From 8eb8a8b1f6c95b6ff741199a60a70cd91f4aad31 Mon Sep 17 00:00:00 2001 From: Chow Loong Jin Date: Sat, 23 Jun 2018 09:53:23 +0800 Subject: [PATCH] Fix format-security violation with croak Missed one in https://github.com/prusa3d/slic3r/pull/802. --- xs/xsp/GCode.xsp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xs/xsp/GCode.xsp b/xs/xsp/GCode.xsp index 36b43271c..c1856ccf7 100644 --- a/xs/xsp/GCode.xsp +++ b/xs/xsp/GCode.xsp @@ -31,7 +31,7 @@ try { THIS->do_export(print, path, preview_data); } catch (std::exception& e) { - croak(e.what()); + croak("%s\n", e.what()); } %};