diff options
author | Radek Novacek <rnovacek@redhat.com> | 2013-11-18 14:15:56 +0100 |
---|---|---|
committer | Radek Novacek <rnovacek@redhat.com> | 2013-11-18 14:43:05 +0100 |
commit | 0169c7d2a2b26a86eb10542690c557c34fc0eb00 (patch) | |
tree | 3b885d1798c418276fbe5e631039048189c76484 /src/service-dbus | |
parent | 34e418f1cc72dc79b25c6bc4c7db9866e07c95b8 (diff) | |
download | openlmi-providers-0169c7d2a2b26a86eb10542690c557c34fc0eb00.tar.gz openlmi-providers-0169c7d2a2b26a86eb10542690c557c34fc0eb00.tar.xz openlmi-providers-0169c7d2a2b26a86eb10542690c557c34fc0eb00.zip |
Fix missing format strings
Missing format strings are considered a vulnerability.
Diffstat (limited to 'src/service-dbus')
-rw-r--r-- | src/service-dbus/LMI_ServiceProvider.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/service-dbus/LMI_ServiceProvider.c b/src/service-dbus/LMI_ServiceProvider.c index 0bc2e77..6fbefe8 100644 --- a/src/service-dbus/LMI_ServiceProvider.c +++ b/src/service-dbus/LMI_ServiceProvider.c @@ -52,7 +52,7 @@ static CMPIStatus LMI_ServiceEnumInstanceNames( slist = service_find_all(output, sizeof(output)); if (slist == NULL) { - KReturn2(_cb, ERR_FAILED, output); + KReturn2(_cb, ERR_FAILED, "%s", output); } for (int i = 0; i < slist->cnt; i++) { @@ -139,7 +139,7 @@ static CMPIStatus LMI_ServiceGetInstance( } else if (res == -2) { /* service of that name doesn't exist */ KReturn(ERR_NOT_FOUND); } else { /* some error occured when getting properties */ - KReturn2(_cb, ERR_FAILED, output); + KReturn2(_cb, ERR_FAILED, "%s", output); } } |