summaryrefslogtreecommitdiff
path: root/bin/ksh/vi.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/vi.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/vi.c')
-rw-r--r--bin/ksh/vi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/ksh/vi.c b/bin/ksh/vi.c
index da682c87b54..0bf16919fd7 100644
--- a/bin/ksh/vi.c
+++ b/bin/ksh/vi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vi.c,v 1.52 2018/01/04 19:06:16 millert Exp $ */
+/* $OpenBSD: vi.c,v 1.53 2018/01/06 16:28:58 millert Exp $ */
/*
* vi command editing
@@ -238,7 +238,7 @@ x_vi(char *buf, size_t len)
x_putc('\r'); x_putc('\n'); x_flush();
- if (c == -1 || len <= es->linelen)
+ if (c == -1 || len <= (size_t)es->linelen)
return -1;
if (es->cbuf != buf)