From c2a9d38653fb3732dd8dbece557443423ba4b956 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 3 Nov 2015 22:20:45 +0100 Subject: [PATCH 272/398] -Werror,-Wformat-security Change-Id: I23f4b906456fdba84f2772a4ed15ac6c141a094d (cherry picked from commit 02b39996fa8447305900adad509250646c0a3b80) --- libreofficekit/source/gtk/lokdocview.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libreofficekit/source/gtk/lokdocview.cxx b/libreofficekit/source/gtk/lokdocview.cxx index bcb1d136b749..9cf78a3f5429 100644 --- a/libreofficekit/source/gtk/lokdocview.cxx +++ b/libreofficekit/source/gtk/lokdocview.cxx @@ -1530,7 +1530,7 @@ postCommandInThread (gpointer data) priv->m_pDocument->pClass->setView(priv->m_pDocument, priv->m_nViewId); std::stringstream ss; ss << "lok::Document::postUnoCommand(" << pLOEvent->m_pCommand << ", " << pLOEvent->m_pArguments << ")"; - g_info(ss.str().c_str()); + g_info("%s", ss.str().c_str()); priv->m_pDocument->pClass->postUnoCommand(priv->m_pDocument, pLOEvent->m_pCommand, pLOEvent->m_pArguments, pLOEvent->m_bNotifyWhenFinished); } @@ -1566,7 +1566,7 @@ paintTileInThread (gpointer data) << aTileRectangle.x << ", " << aTileRectangle.y << ", " << pixelToTwip(nTileSizePixels, pLOEvent->m_fPaintTileZoom) << ", " << pixelToTwip(nTileSizePixels, pLOEvent->m_fPaintTileZoom) << ")"; - g_info(ss.str().c_str()); + g_info("%s", ss.str().c_str()); priv->m_pDocument->pClass->paintTile(priv->m_pDocument, pBuffer, nTileSizePixels, nTileSizePixels, -- 2.12.0