Re: [PATCH 2/2] Add missing format specifiers in src/error.c

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Mariusz,

On Fri, Dec 26, 2014 at 9:31 PM, Mariusz Skamra
<mariusz.skamra@xxxxxxxxx> wrote:
> ---
>  src/error.c | 5 +++--
>  1 file changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/src/error.c b/src/error.c
> index a80c1ab..ae227b6 100644
> --- a/src/error.c
> +++ b/src/error.c
> @@ -40,7 +40,7 @@ DBusMessage *btd_error_invalid_args(DBusMessage *msg)
>  DBusMessage *btd_error_invalid_args_str(DBusMessage *msg, const char *str)
>  {
>         return g_dbus_create_error(msg, ERROR_INTERFACE ".InvalidArguments",
> -                                                                       str);
> +                                       "%s", str);
>  }
>
>  DBusMessage *btd_error_busy(DBusMessage *msg)
> @@ -99,7 +99,8 @@ DBusMessage *btd_error_not_authorized(DBusMessage *msg)
>
>  DBusMessage *btd_error_not_permitted(DBusMessage *msg, const char *str)
>  {
> -       return g_dbus_create_error(msg, ERROR_INTERFACE ".NotPermitted", str);
> +       return g_dbus_create_error(msg, ERROR_INTERFACE ".NotPermitted",
> +                                       "%s", str);
>  }
>
>  DBusMessage *btd_error_no_such_adapter(DBusMessage *msg)
> --
> 1.9.1

Applied, thanks.


-- 
Luiz Augusto von Dentz
--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux