From 02d4abe81ed1a46961edaee6a6c10392145f9194 Mon Sep 17 00:00:00 2001 From: Andrey Bondrov Date: Fri, 3 Apr 2015 23:30:32 +1000 Subject: [PATCH] Add patch to fix string format error --- libreoffice-4.4.2.2-sfmt.patch | 12 ++++++++++++ libreoffice.spec | 1 + 2 files changed, 13 insertions(+) create mode 100644 libreoffice-4.4.2.2-sfmt.patch diff --git a/libreoffice-4.4.2.2-sfmt.patch b/libreoffice-4.4.2.2-sfmt.patch new file mode 100644 index 0000000..fe2b427 --- /dev/null +++ b/libreoffice-4.4.2.2-sfmt.patch @@ -0,0 +1,12 @@ +diff -urN libreoffice-4.4.2.2/vcl/unx/gtk/a11y/atktextattributes.cxx libreoffice-4.4.2.2-patched/vcl/unx/gtk/a11y/atktextattributes.cxx +--- libreoffice-4.4.2.2/vcl/unx/gtk/a11y/atktextattributes.cxx 2015-03-26 21:51:14.000000000 +1000 ++++ libreoffice-4.4.2.2-patched/vcl/unx/gtk/a11y/atktextattributes.cxx 2015-04-03 23:23:10.113442272 +1000 +@@ -1235,7 +1235,7 @@ + + pSet = attribute_set_prepend( pSet, + atk_text_attribute_register( sPropertyName.getStr() ), +- g_strdup_printf( sPropertyValue.getStr() ) ); ++ g_strdup_printf( "%s", sPropertyValue.getStr() ) ); + } + while ( nIndex >= 0 && nIndex < sExtendedAttrs.getLength() ); + diff --git a/libreoffice.spec b/libreoffice.spec index 251f93b..db659b3 100644 --- a/libreoffice.spec +++ b/libreoffice.spec @@ -105,6 +105,7 @@ Patch1: libreoffice-4.2.5-icu-49.patch Patch2: help-images-mdv64789.patch Patch3: 0002-fix-tubes-build.patch Patch4: libreoffice-4.4.2.2-disable-test2.patch +Patch5: libreoffice-4.4.2.2-sfmt.patch Patch51: libreoffice-4.4.1.2-impress-kde-crash-hack.patch