Author: Alastair McKinstry <mckinstry@debian.org>
Description: Allow code to compile with -Werror=format-security enabled. Relies on the
  code DBfile_as_string() being safe.
Last-Updated: 2011-09-25
Forwarded: no

Index: silo-llnl-4.10.2/tools/python/pydbfile.cpp
===================================================================
--- silo-llnl-4.10.2.orig/tools/python/pydbfile.cpp
+++ silo-llnl-4.10.2/tools/python/pydbfile.cpp
@@ -786,7 +786,7 @@ static int DBfile_print(PyObject *self,
 {
     char str[1000];
     DBfile_as_string(self, str);
-    fprintf(fp, str);
+    fprintf(fp, "%s", str);
     return 0;
 }
 
Index: silo-llnl-4.10.2/tools/python/pydbtoc.cpp
===================================================================
--- silo-llnl-4.10.2.orig/tools/python/pydbtoc.cpp
+++ silo-llnl-4.10.2/tools/python/pydbtoc.cpp
@@ -191,7 +191,7 @@ static int DBtoc_print(PyObject *self, F
     int len = DBtoc_as_string(self, 0);
     char *str = new char[len]; 
     DBtoc_as_string(self, str);
-    fprintf(fp, str);
+    fprintf(fp, "%s", str);
     delete [] str;
     return 0;
 }
