fold: fix fadvise hint
commit9c589e694f3c235d723ae80533f3bf09a5ac3702
authorAndreas Schwab <schwab@linux-m68k.org>
Sat, 16 Oct 2010 11:32:04 +0000 (16 13:32 +0200)
committerJim Meyering <meyering@redhat.com>
Sat, 16 Oct 2010 11:32:04 +0000 (16 13:32 +0200)
tree2c4287b61fdcd6985745a6b287c4c535d14f5804
parent6728401351e9c6137cb9e10b5961bb1c2c0d237c
fold: fix fadvise hint

* src/fold.c (fold_file): Apply fadvise to istream, not stdin.
This bug would have inhibited the fadvise optimization when not
reading from standard input.
src/fold.c