diff options
author | Osamu Aoki <osamu@debian.org> | 2013-07-19 18:14:19 +0900 |
---|---|---|
committer | fujiwarat <takao.fujiwara1@gmail.com> | 2013-07-19 18:14:19 +0900 |
commit | 5f356a34e88ccdd316a960fcb33703aacf28ff09 (patch) | |
tree | 582c8c569b1b216c3791538eb3a250ff50d30fce /bus | |
parent | 7fdcd865f14d5de6a276e71c2ed958a736dc34db (diff) |
Fix error with gcc -Wformat -Werror=format-security
BUG=http://code.google.com/p/ibus/issues/detail?id=1638
TEST=bus/ibusimpl.c
Review URL: https://codereview.appspot.com/11471044
Patch from Osamu Aoki <osamu@debian.org>.
Diffstat (limited to 'bus')
-rw-r--r-- | bus/ibusimpl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bus/ibusimpl.c b/bus/ibusimpl.c index 2cd293d2..4f8afe95 100644 --- a/bus/ibusimpl.c +++ b/bus/ibusimpl.c @@ -963,7 +963,7 @@ _ibus_current_input_context_depre (BusIBusImpl *ibus, if (variant == NULL) { g_dbus_method_invocation_return_error ( invocation, G_DBUS_ERROR, G_DBUS_ERROR_FAILED, - error->message); + "%s", error->message); g_error_free (error); } else { const gchar *path = g_variant_get_string (variant, NULL); @@ -1357,7 +1357,7 @@ _ibus_get_global_engine_depre (BusIBusImpl *ibus, g_dbus_method_invocation_return_error ( invocation, G_DBUS_ERROR, G_DBUS_ERROR_FAILED, - error->message); + "%s", error->message); g_error_free (error); } else { GVariant *retval = g_variant_get_variant (variant); |