summaryrefslogtreecommitdiff
path: root/sci-chemistry/pymol/files/pymol-2.5.0-format-security.patch
blob: 080e5e8960e433249dafbd6a09de5343ea0bbad7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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;