replace strcpy,strcat,sprintf on strlcpy,strlcat,snprintf
use STDOUT_FILENO and STDERR_FILENO
add SMALL
using a help file instead of embedding it in the binary
Remove extra `.' from -m prompt string. From Daniel Malament danielm
at bluetiger dot net, PR 6234.
add more -d
Fix removing of trailing space in file name completion list.
Fix off-by-one when moving a line to the end of the buffer.  Instead
of doing our own memmove() (incorrectly) just use memmove().
Bug found by Matthias Scheler <tron@zhadum.de>.
OK deraadt@ henning@ krw@
When reallocating the line buffer, double the existing buffer
size instead of just incrementing it by LINEBUF_SIZE and use realloc()
+ memset() instead of calloc() + memcpy().  Prevents excessive resource
usage when displaying very long lines.  OK deraadt@, krw@ and otto@
Fix recovery of realloc failure, which causes a segv on files with
very lone lines, as reported by Steffen Wendzel.  ok deraadt@

When reallocating the line buffer, double the existing buffer
size instead of just incrementing it by LINEBUF_SIZE and use realloc()
+ memset() instead of calloc() + memcpy().  Prevents excessive resource
usage when displaying very long lines.  OK deraadt@, krw@ and otto@
Use interruptible syscalls instead of setjmp/longjmp. This make
less's signal handlers safe. No one has reported problems so far...
Incorporate less modifications for more
It turns out that POSIX specifies more should prompt with the file name,
not --More-- like the old UCB more did.  Back out a hack I did to
make the prompt look like the old UCB more.
Call fsync() _after_ tcsetattr() and pass tcsetattr the TCSASOFT
flag. Seems to help the occasional problem with messed up terminal
input after suspending less.
remove unneed SMALL
add openbsd patch
Repair interrupted reads; fixes ^Z. OK deraadt@
return the old behaviour for "more":
if you press F ^C, you would be left at a prompt at the end of the file.

ok nicm@
Don't create a history file called -... doh. Pointed out by jmc.
Reverse the default of the -c flag from off to on to prevent the text
being displayed in the wrong place initially and then jumping when first
redrawn (such as when searching).

ok deraadt sthen