summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/fold.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fold.c b/src/fold.c
index d5858568c..4da834b17 100644
--- a/src/fold.c
+++ b/src/fold.c
@@ -143,7 +143,7 @@ fold_file (char const *filename, size_t width)
return false;
}
- fadvise (stdin, FADVISE_SEQUENTIAL);
+ fadvise (istream, FADVISE_SEQUENTIAL);
while ((c = getc (istream)) != EOF)
{