Description: Fix for FTBFS with format-security error on
Author: Alastair McKinstry <mckinstry@debian.org>
Last-Updated: 2019-10-07
Forwarded: no

Index: paraview-5.7.0/VTK/Common/Core/vtkLogger.h
===================================================================
--- paraview-5.7.0.orig/VTK/Common/Core/vtkLogger.h
+++ paraview-5.7.0/VTK/Common/Core/vtkLogger.h
@@ -485,10 +485,10 @@ private:
 #define vtkVLogScopeF(level, ...)                                                                  \
   auto VTKLOG_ANONYMOUS_VARIABLE(msg_context) = ((level) > vtkLogger::GetCurrentVerbosityCutoff()) \
     ? vtkLogger::LogScopeRAII()                                                                    \
-    : vtkLogger::LogScopeRAII(level, __FILE__, __LINE__, __VA_ARGS__)
+    : vtkLogger::LogScopeRAII(level, __FILE__, __LINE__, "%s", __VA_ARGS__)
 
 #define vtkLogScopeF(verbosity_name, ...)                                                          \
-  vtkVLogScopeF(vtkLogger::VERBOSITY_##verbosity_name, __VA_ARGS__)
+  vtkVLogScopeF(vtkLogger::VERBOSITY_##verbosity_name, "%s", __VA_ARGS__)
 
 #define vtkLogScopeFunction(verbosity_name) vtkLogScopeF(verbosity_name, __func__)
 #define vtkVLogScopeFunction(level) vtkVLogScopeF(level, __func__)
