diff options
Diffstat (limited to 'sci-chemistry/pymol/files/pymol-2.5.0-format-security.patch')
-rw-r--r-- | sci-chemistry/pymol/files/pymol-2.5.0-format-security.patch | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/sci-chemistry/pymol/files/pymol-2.5.0-format-security.patch b/sci-chemistry/pymol/files/pymol-2.5.0-format-security.patch new file mode 100644 index 000000000000..080e5e8960e4 --- /dev/null +++ b/sci-chemistry/pymol/files/pymol-2.5.0-format-security.patch @@ -0,0 +1,15 @@ +Author: Michael Banck <mbanck@debian.org> +Description: Fix "error: format not a string literal and no format arguments [-Werror=format-security]" (#759860) +Forwarded: yes + +--- a/contrib/uiuc/plugins/molfile_plugin/src/maeffplugin.cpp ++++ b/contrib/uiuc/plugins/molfile_plugin/src/maeffplugin.cpp +@@ -2004,7 +2004,7 @@ namespace { + } + } + catch (std::exception &e) { +- fprintf(stderr, "%s", e.what()); ++ fprintf(stderr, "Cannot write timestamp to mae file: %s\n", e.what()); + return MOLFILE_ERROR; + } + return MOLFILE_SUCCESS; |