diff options
author | Todd C. Miller <Todd.Miller@sudo.ws> | 2020-08-12 13:45:09 -0600 |
---|---|---|
committer | Todd C. Miller <Todd.Miller@sudo.ws> | 2020-08-12 13:45:09 -0600 |
commit | cb0993bce1aa8d7ffe7364e8d9b48197b65a096c (patch) | |
tree | 2dad33395b127ef8be3dcceea45fab082e69dfbf /plugins/audit_json | |
parent | d8e699b32eff12a994dc2416ea6d6f6fcb274402 (diff) | |
download | sudo-cb0993bce1aa8d7ffe7364e8d9b48197b65a096c.tar.gz |
Fix some warnings from pvs-studio
Diffstat (limited to 'plugins/audit_json')
-rw-r--r-- | plugins/audit_json/audit_json.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/audit_json/audit_json.c b/plugins/audit_json/audit_json.c index ea8921bec..64adcb738 100644 --- a/plugins/audit_json/audit_json.c +++ b/plugins/audit_json/audit_json.c @@ -413,7 +413,7 @@ audit_write_exit_record(int exit_status, int error) debug_decl(audit_write_exit_record, SUDO_DEBUG_PLUGIN); if (sudo_gettime_real(&now) == -1) { - sudo_warn(U_("unable to read the clock")); + sudo_warn("%s", U_("unable to read the clock")); goto done; } @@ -498,7 +498,7 @@ audit_write_record(const char *audit_str, const char *plugin_name, debug_decl(audit_write_record, SUDO_DEBUG_PLUGIN); if (sudo_gettime_real(&now) == -1) { - sudo_warn(U_("unable to read the clock")); + sudo_warn("%s", U_("unable to read the clock")); goto done; } |