summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2013-12-18 16:45:47 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2013-12-18 16:45:47 +0000
commit8249b5e0e627c1aa2b58b80924e2c64e56fd3369 (patch)
tree70bdd92bc180509faf8a82c6381a14a8c44ad4c5 /bin
parentbbea1c8be76290033777b82b4d1c362a2113b3e2 (diff)
incorrect cast for ctype, spotted and repaired by LEVAI Daniel
Diffstat (limited to 'bin')
-rw-r--r--bin/ksh/vi.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/ksh/vi.c b/bin/ksh/vi.c
index 3cebffcf9e1..b31d4af9362 100644
--- a/bin/ksh/vi.c
+++ b/bin/ksh/vi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vi.c,v 1.27 2013/12/17 16:37:06 deraadt Exp $ */
+/* $OpenBSD: vi.c,v 1.28 2013/12/18 16:45:46 deraadt Exp $ */
/*
* vi command editing
@@ -793,8 +793,8 @@ vi_cmd(int argcnt, const char *cmd)
if (*cmd == 'c' &&
(cmd[1]=='w' || cmd[1]=='W') &&
!isspace((unsigned char)es->cbuf[es->cursor])) {
- while ((unsigned char)
- isspace(es->cbuf[--ncursor]))
+ while (isspace(
+ (unsigned char)es->cbuf[--ncursor]))
;
ncursor++;
}