Package: pymol / 2.4.0+dfsg-2

31_fix_format-security.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Author: Michael Banck <mbanck@debian.org>
Description: Fix "error: format not a string literal and no format arguments [-Werror=format-security]" (#759860)
Forwarded: yes

Index: pymol/contrib/uiuc/plugins/molfile_plugin/src/maeffplugin.cpp
===================================================================
--- pymol.orig/contrib/uiuc/plugins/molfile_plugin/src/maeffplugin.cpp
+++ pymol/contrib/uiuc/plugins/molfile_plugin/src/maeffplugin.cpp
@@ -2002,7 +2002,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;