2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-31 06:15:37 +00:00

Format string safety in error path.

This commit is contained in:
Todd C. Miller
2014-04-22 16:03:57 -06:00
parent 134b2a4228
commit 62a278183b

View File

@@ -664,7 +664,7 @@ set_cmnd(void)
if (rval == NOT_FOUND_ERROR) {
if (errno == ENAMETOOLONG)
audit_failure(NewArgv, N_("command too long"));
log_warning(NO_MAIL|USE_ERRNO, NewArgv[0]);
log_warning(NO_MAIL|USE_ERRNO, "%s", NewArgv[0]);
debug_return_int(rval);
}
}