summaryrefslogtreecommitdiff
path: root/usr.bin/less/decode.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/less/decode.c')
-rw-r--r--usr.bin/less/decode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/less/decode.c b/usr.bin/less/decode.c
index 1737327855f..586b98afa97 100644
--- a/usr.bin/less/decode.c
+++ b/usr.bin/less/decode.c
@@ -681,7 +681,7 @@ lesskey(filename, sysvar)
close(f);
return (-1);
}
- if (lseek(f, (off_t)0, 0) == BAD_LSEEK)
+ if (lseek(f, (off_t)0, SEEK_SET) == BAD_LSEEK)
{
free(buf);
close(f);