* Fix two buffer overflows caused by off-by-one errors: avoid writing
authorDavid Rhodus <drhodus@dragonflybsd.org>
Tue, 4 Nov 2003 17:03:11 +0000 (17:03 +0000)
committerDavid Rhodus <drhodus@dragonflybsd.org>
Tue, 4 Nov 2003 17:03:11 +0000 (17:03 +0000)
commitd2db1b772a3780a0b033191bcba9cdb6c95903e3
tree59521db04105147dfa68eca7ee5f46e777bc0a5e
parent14ddbe5befaf20a49def46b9bee29a995f25421e
* Fix two buffer overflows caused by off-by-one errors: avoid writing
a null character 1 byte past the end of cmdline[] when libedit is
being used for input, and avoid writing a null pointer 1 element
past the end of margvp[].

Obtained from: FreeBSD
usr.sbin/lpr/lpc/lpc.c