Use a "%s" format instead of using a translated string as the format.

This commit is contained in:
Todd C. Miller
2023-05-03 13:26:54 -06:00
parent 16191bb3d1
commit 27ea64bacd

View File

@@ -240,7 +240,7 @@ suspend_sudo_pty(struct exec_closure *ec, int signo)
sa.sa_flags = SA_RESTART; sa.sa_flags = SA_RESTART;
sa.sa_handler = SIG_DFL; sa.sa_handler = SIG_DFL;
if (sudo_sigaction(SIGCONT, &sa, &saved_sigcont) != 0) if (sudo_sigaction(SIGCONT, &sa, &saved_sigcont) != 0)
sudo_warn(U_("unable to set handler for SIGCONT")); sudo_warn("%s", U_("unable to set handler for SIGCONT"));
if (sig2str(signo, signame) == -1) if (sig2str(signo, signame) == -1)
(void)snprintf(signame, sizeof(signame), "%d", signo); (void)snprintf(signame, sizeof(signame), "%d", signo);
@@ -342,7 +342,7 @@ suspend_sudo_pty(struct exec_closure *ec, int signo)
} }
if (sudo_sigaction(SIGCONT, &saved_sigcont, NULL) != 0) if (sudo_sigaction(SIGCONT, &saved_sigcont, NULL) != 0)
sudo_warn(U_("unable to restore handler for SIGCONT")); sudo_warn("%s", U_("unable to restore handler for SIGCONT"));
debug_return_int(ret); debug_return_int(ret);
} }