diff --git a/src/exec_pty.c b/src/exec_pty.c index c32604a6f..d73b005af 100644 --- a/src/exec_pty.c +++ b/src/exec_pty.c @@ -628,7 +628,7 @@ pty_close(struct command_status *cstat) if (cstat->type == CMD_WSTATUS && WIFSIGNALED(cstat->val)) { int signo = WTERMSIG(cstat->val); if (signo && signo != SIGINT && signo != SIGPIPE) { - char *reason = strsignal(signo); + const char *reason = strsignal(signo); n = io_fds[SFD_USERTTY] != -1 ? io_fds[SFD_USERTTY] : STDOUT_FILENO; write(n, reason, strlen(reason));