summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--usr.bin/wc/wc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/wc/wc.c b/usr.bin/wc/wc.c
index 7562f9d..6eb2602 100644
--- a/usr.bin/wc/wc.c
+++ b/usr.bin/wc/wc.c
@@ -140,7 +140,7 @@ cnt(file)
int clen, fd, len, warned;
short gotsp;
u_char *p;
- u_char buf[MAXBSIZE], ch;
+ u_char buf[MAXBSIZE];
wchar_t wch;
linect = wordct = charct = 0;
@@ -235,7 +235,7 @@ word: gotsp = 1;
if (wch == L'\n')
++linect;
/* XXX Non-portable; should use iswspace() */
- if (isspace(ch))
+ if (isspace(wch))
gotsp = 1;
else if (gotsp) {
gotsp = 0;
OpenPOWER on IntegriCloud