summaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
authorLukas Slebodnik <lslebodn@redhat.com>2016-12-01 13:13:21 +0100
committerLukas Slebodnik <lslebodn@redhat.com>2016-12-01 13:56:40 +0100
commit8618716d6ed4eadca2743eb2dfbbb8d11c4fb22f (patch)
tree73bf5de87f68e62c687de5f253696efd02c073e0 /src/lib
parent13b1d270fb72cf2c2e18f0b2a59cb424c51f7675 (diff)
downloadsssd-8618716d6ed4eadca2743eb2dfbbb8d11c4fb22f.tar.gz
sssd-8618716d6ed4eadca2743eb2dfbbb8d11c4fb22f.tar.xz
sssd-8618716d6ed4eadca2743eb2dfbbb8d11c4fb22f.zip
SIFP: Fix warning format-security
dbus-1.11.8 added attributes for format string check to few functions in public header files. And therefore there is a warning. src/lib/sifp/sss_sifp_utils.c: In function ‘sss_sifp_set_io_error’: src/lib/sifp/sss_sifp_utils.c:44:5: error: format not a string literal and no format arguments [-Werror=format-security] dbus_set_error(ctx->io_error, error->name, error->message); ^~~~~~~~~~~~~~ Reviewed-by: Pavel Březina <pbrezina@redhat.com>
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/sifp/sss_sifp_utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/sifp/sss_sifp_utils.c b/src/lib/sifp/sss_sifp_utils.c
index ccd051838..dcac71f50 100644
--- a/src/lib/sifp/sss_sifp_utils.c
+++ b/src/lib/sifp/sss_sifp_utils.c
@@ -41,7 +41,7 @@ void sss_sifp_set_io_error(sss_sifp_ctx *ctx, DBusError *error)
{
dbus_error_free(ctx->io_error);
dbus_error_init(ctx->io_error);
- dbus_set_error(ctx->io_error, error->name, error->message);
+ dbus_set_error(ctx->io_error, error->name, "%s", error->message);
}
char * sss_sifp_strdup(sss_sifp_ctx *ctx, const char *str)