summaryrefslogtreecommitdiff
path: root/bin/ksh/c_ksh.c
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2018-01-06 16:28:59 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2018-01-06 16:28:59 +0000
commitc08a8d775d9ec66e3999e2e512ee8ae5b69b826f (patch)
tree370b94252d121903bb78cd44feb190d8837bdcfc /bin/ksh/c_ksh.c
parent50c1986fcdee977a1b88318e0e39c0f0af9822d6 (diff)
Bring back the sign compare changes, this time with a fix from otto@
that fixes the issues seen on hppa. OK deraadt@ otto@
Diffstat (limited to 'bin/ksh/c_ksh.c')
-rw-r--r--bin/ksh/c_ksh.c5
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;