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.8/tools/python/pydbfile.cpp
===================================================================
--- silo-llnl-4.8.orig/tools/python/pydbfile.cpp	2011-09-26 13:58:24.000000000 +0100
+++ silo-llnl-4.8/tools/python/pydbfile.cpp	2011-09-26 14:09:43.000000000 +0100
@@ -548,7 +548,7 @@
 {
     char str[1000];
     DBfile_as_string(self, str);
-    fprintf(fp, str);
+    fprintf(fp, "%s", str);
     return 0;
 }
 
Index: silo-llnl-4.8/tools/python/pydbtoc.cpp
===================================================================
--- silo-llnl-4.8.orig/tools/python/pydbtoc.cpp	2011-09-26 13:58:24.000000000 +0100
+++ silo-llnl-4.8/tools/python/pydbtoc.cpp	2011-09-26 14:12:12.000000000 +0100
@@ -178,7 +178,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;
 }
