summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--more.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/more.c b/more.c
index 6e941fc..aae4ad4 100644
--- a/more.c
+++ b/more.c
@@ -70,8 +70,8 @@ enum {
static ssize_t more_getline(struct more_file *mf, size_t lineno)
{
if (mf->nlines <= lineno && mf->nlines != 0) {
- fsetpos(mf->f, &(mf->tlines[mf->nlines - 1]));
- getline(&(mf->buf), &(mf->nbuf), mf->f);
+ fsetpos(mf->backing, &(mf->tlines[mf->nlines - 1]));
+ getline(&(mf->buf), &(mf->nbuf), mf->backing);
}
while (mf->nlines <= lineno) {