aboutsummaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/wc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/wc.c b/core/wc.c
index 2c1f7b4..d975231 100644
--- a/core/wc.c
+++ b/core/wc.c
@@ -46,7 +46,7 @@ int main(int argc, char *const argv[]) {
while ((length = getline(&line, &len_getd, file)) != -1) {
if (param['l']) newlines++;
if (param['c'] || param['m']) bytes += length;
- } rewind(file);
+ } rewind(file); /* XXX: Won't work with standard input */
if (errno) return errprint(argv0, argv[i], errno);
if (param['w']) while ((length = getdelim(&line, &len_getd, (int)' ', file)) != -1) {
words++;