diff options
Diffstat (limited to 'bin/ksh/c_ksh.c')
-rw-r--r-- | bin/ksh/c_ksh.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/ksh/c_ksh.c b/bin/ksh/c_ksh.c index 3dae72e6383..0e071809d55 100644 --- a/bin/ksh/c_ksh.c +++ b/bin/ksh/c_ksh.c @@ -1,4 +1,4 @@ -/* $OpenBSD: c_ksh.c,v 1.55 2018/01/05 15:44:31 jca Exp $ */ +/* $OpenBSD: c_ksh.c,v 1.56 2018/01/06 16:28:58 millert Exp $ */ /* * built-in Korn commands: c_* @@ -1192,7 +1192,8 @@ c_kill(char **wp) ki.num_width++; for (i = 0; i < NSIG; i++) { - w = sigtraps[i].name ? strlen(sigtraps[i].name) : + w = sigtraps[i].name ? + (int)strlen(sigtraps[i].name) : ki.num_width; if (w > ki.name_width) ki.name_width = w; |