[Libreoffice-commits] core.git: libreofficekit/source
Miklos Vajna
vmiklos at collabora.co.uk
Tue Jul 28 07:35:40 PDT 2015
libreofficekit/source/gtk/lokdocview.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit b120adb290cee480516b14683f314318573c9d7e
Author: Miklos Vajna <vmiklos at collabora.co.uk>
Date: Tue Jul 28 16:35:02 2015 +0200
libreofficekit: -Werror,-Wformat-security
Change-Id: I177ea091fb1061d9fa71f7fb1a84629128afd6a0
diff --git a/libreofficekit/source/gtk/lokdocview.cxx b/libreofficekit/source/gtk/lokdocview.cxx
index 7ce2764..d13fb9b 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
{
More information about the Libreoffice-commits
mailing list