summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTodd C. Miller <Todd.Miller@sudo.ws>2023-05-03 13:26:54 -0600
committerTodd C. Miller <Todd.Miller@sudo.ws>2023-05-03 13:26:54 -0600
commit8e6dc7a9fde12a9216639a9829359767f9210418 (patch)
tree59ba2ef74d4a395f0d45d70f0408ad2ca769de05
parent221669eeff93a9e83ca4f5fb8e98a20acf0c917a (diff)
downloadsudo-8e6dc7a9fde12a9216639a9829359767f9210418.tar.gz
Use a "%s" format instead of using a translated string as the format.
-rw-r--r--src/exec_pty.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/exec_pty.c b/src/exec_pty.c
index 676609063..2cc1d15c7 100644
--- a/src/exec_pty.c
+++ b/src/exec_pty.c
@@ -240,7 +240,7 @@ suspend_sudo_pty(struct exec_closure *ec, int signo)
sa.sa_flags = SA_RESTART;
sa.sa_handler = SIG_DFL;
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)
(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)
- sudo_warn(U_("unable to restore handler for SIGCONT"));
+ sudo_warn("%s", U_("unable to restore handler for SIGCONT"));
debug_return_int(ret);
}