summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2015-07-28 16:35:02 +0200
committerAshod Nakashian <ashod.nakashian@collabora.co.uk>2016-02-07 22:09:18 -0500
commita93b90f77154c6868b5dbd5c58433b09e9c94f1b (patch)
tree3c7351d665776a49befd0a3ffe2a0c461c4f09b4
parenteb9be41cc92c47888be48cebd09aa06bd4915e04 (diff)
libreofficekit: -Werror,-Wformat-security
Change-Id: I177ea091fb1061d9fa71f7fb1a84629128afd6a0 (cherry picked from commit b120adb290cee480516b14683f314318573c9d7e)
-rw-r--r--libreofficekit/source/gtk/lokdocview.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/libreofficekit/source/gtk/lokdocview.cxx b/libreofficekit/source/gtk/lokdocview.cxx
index dc0816859e9e..c13e87b9a568 100644
--- a/libreofficekit/source/gtk/lokdocview.cxx
+++ b/libreofficekit/source/gtk/lokdocview.cxx
@@ -1191,7 +1191,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
{