Package: pymol / 2.5.0+dfsg-1

31_fix_format-security.patch Patch series | download
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;