[packages/ibus] - fix format string error
baggins
baggins at pld-linux.org
Sat Jul 6 13:06:46 CEST 2013
commit a82db240b8b5acbd2a6d436d135ec5509a8250fb
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Sat Jul 6 13:06:34 2013 +0200
- fix format string error
format-security.patch | 16 ++++++++++++++++
ibus.spec | 2 ++
2 files changed, 18 insertions(+)
---
diff --git a/ibus.spec b/ibus.spec
index 5682cd5..ba13129 100644
--- a/ibus.spec
+++ b/ibus.spec
@@ -21,6 +21,7 @@ Patch0: %{name}-810211-no-switch-by-no-trigger.patch
Patch1: %{name}-541492-xkb.patch
Patch2: %{name}-530711-preload-sys.patch
Patch3: %{name}-xx-setup-frequent-lang.patch
+Patch4: format-security.patch
URL: http://code.google.com/p/ibus/
BuildRequires: GConf2-devel >= 2.12
BuildRequires: atk-devel
@@ -203,6 +204,7 @@ Bashowe dopełnianie parametrów dla poleceń ibus.
%patch2 -p1
%patch3 -p1
%endif
+%patch4 -p1
%build
%{__libtoolize}
diff --git a/format-security.patch b/format-security.patch
new file mode 100644
index 0000000..995704f
--- /dev/null
+++ b/format-security.patch
@@ -0,0 +1,16 @@
+--- ibus-1.5.2/src/ibusfactory.c~ 2013-04-17 03:31:01.000000000 +0200
++++ ibus-1.5.2/src/ibusfactory.c 2013-07-06 13:03:48.733442060 +0200
+@@ -287,12 +287,10 @@
+ g_free (object_path);
+ }
+ else {
+- gchar *error_message = g_strdup_printf ("Can not fond engine %s", engine_name);
+ g_dbus_method_invocation_return_error (invocation,
+ G_DBUS_ERROR,
+ G_DBUS_ERROR_FAILED,
+- error_message);
+- g_free (error_message);
++ "Can not fond engine %s", engine_name);
+ }
+ return;
+ }
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/ibus.git/commitdiff/a82db240b8b5acbd2a6d436d135ec5509a8250fb
More information about the pld-cvs-commit
mailing list