diff options
author | Radek Novacek <rnovacek@redhat.com> | 2013-11-18 14:15:56 +0100 |
---|---|---|
committer | Radek Novacek <rnovacek@redhat.com> | 2013-11-21 11:24:14 +0100 |
commit | 6efe596861f6d5914189c0832e1e2f7146600f58 (patch) | |
tree | 72e7339c13d84a6b01b83a9a1b48c975542aff2c /src/service-dbus | |
parent | 173fbbe0c7c6c09654d420d77975a94c0707e35b (diff) | |
download | openlmi-providers-6efe596861f6d5914189c0832e1e2f7146600f58.tar.gz openlmi-providers-6efe596861f6d5914189c0832e1e2f7146600f58.tar.xz openlmi-providers-6efe596861f6d5914189c0832e1e2f7146600f58.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); } } |