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.9.1/tools/python/pydbfile.cpp
===================================================================
--- silo-llnl-4.9.1.orig/tools/python/pydbfile.cpp	2014-03-04 14:26:04.376753361 +0000
+++ silo-llnl-4.9.1/tools/python/pydbfile.cpp	2014-03-04 14:26:04.372753260 +0000
@@ -789,7 +789,7 @@
 {
     char str[1000];
     DBfile_as_string(self, str);
-    fprintf(fp, str);
+    fprintf(fp, "%s", str);
     return 0;
 }
 
Index: silo-llnl-4.9.1/tools/python/pydbtoc.cpp
===================================================================
--- silo-llnl-4.9.1.orig/tools/python/pydbtoc.cpp	2014-03-04 14:26:04.376753361 +0000
+++ silo-llnl-4.9.1/tools/python/pydbtoc.cpp	2014-03-04 14:26:04.372753260 +0000
@@ -190,7 +190,7 @@
     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;
 }
