summarylogtreecommitdiffstats
path: root/format-strings.patch
diff options
context:
space:
mode:
Diffstat (limited to 'format-strings.patch')
-rw-r--r--format-strings.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/format-strings.patch b/format-strings.patch
new file mode 100644
index 000000000000..f1263d91b39d
--- /dev/null
+++ b/format-strings.patch
@@ -0,0 +1,14 @@
+Description: Ensure format strings are constants
+Author: Stephen Kitt <skitt@debian.org>
+
+--- a/src/exr.cpp
++++ b/src/exr.cpp
+@@ -42,7 +42,7 @@
+ try {
+ exr_save_real (hi, filename);
+ } catch (const std::exception &exc) {
+- GError *nerror = g_error_new (fyre_exr_error_quark(), FYRE_EXR_SAVE_FAILURE, exc.what());
++ GError *nerror = g_error_new (fyre_exr_error_quark(), FYRE_EXR_SAVE_FAILURE, "%s", exc.what());
+ *error = nerror;
+ }
+ }