From 435dcf370f19ea9b514c480a7c5a87b8cbc7b2d2 Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Tue, 28 Jul 2015 16:35:02 +0200 Subject: [PATCH 085/398] libreofficekit: -Werror,-Wformat-security Change-Id: I177ea091fb1061d9fa71f7fb1a84629128afd6a0 (cherry picked from commit b120adb290cee480516b14683f314318573c9d7e) --- libreofficekit/source/gtk/lokdocview.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libreofficekit/source/gtk/lokdocview.cxx b/libreofficekit/source/gtk/lokdocview.cxx index b72a664c9320..cb77aa4097d0 100644 --- a/libreofficekit/source/gtk/lokdocview.cxx +++ b/libreofficekit/source/gtk/lokdocview.cxx @@ -1169,7 +1169,7 @@ openDocumentInThread (gpointer data) // FIXME: should have a GError parameter and populate it. char *pError = priv->m_pOffice->pClass->getError( priv->m_pOffice ); fprintf( stderr, "Error opening document '%s'\n", pError ); - g_task_return_new_error(task, 0, 0, pError); + g_task_return_new_error(task, 0, 0, "%s", pError); } else { -- 2.12.0