aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkraai <kraai@69ca8d6d-28ef-0310-b511-8ec308f3f277>2001-12-11 16:06:02 +0000
committerkraai <kraai@69ca8d6d-28ef-0310-b511-8ec308f3f277>2001-12-11 16:06:02 +0000
commit8332f12a43362c5006de9a7e34612cfa09666aa3 (patch)
tree19e2ebb81d3465130d39ee5de09ea08a7730b684
parentead34c22f4fc1167af566f00a8e3c674f1feb82b (diff)
downloadbusybox-w32-8332f12a43362c5006de9a7e34612cfa09666aa3.tar.gz
busybox-w32-8332f12a43362c5006de9a7e34612cfa09666aa3.tar.bz2
busybox-w32-8332f12a43362c5006de9a7e34612cfa09666aa3.zip
Use an int to hold the result of fgetc (bug noted by David Kimdon).
git-svn-id: svn://busybox.net/trunk/busybox@3881 69ca8d6d-28ef-0310-b511-8ec308f3f277
-rw-r--r--coreutils/wc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/coreutils/wc.c b/coreutils/wc.c
index 9f818ea72..fb81c0a8f 100644
--- a/coreutils/wc.c
+++ b/coreutils/wc.c
@@ -68,7 +68,7 @@ static void wc_file(FILE * file, const char *name)
68 unsigned int length = 0; 68 unsigned int length = 0;
69 unsigned int linepos = 0; 69 unsigned int linepos = 0;
70 char in_word = 0; 70 char in_word = 0;
71 char c; 71 int c;
72 72
73 while ((c = getc(file)) != EOF) { 73 while ((c = getc(file)) != EOF) {
74 chars++; 74 chars++;