Fix two copy/paste bugs: forbid zero-length buffers to prevent a fatal errorOPENBSD.4.6.BASE
commitfe5edad1fcd60d94bc45ca49f94636eeecae210d
authorNicholas Marriott <nicm@openbsd.org>
Thu, 2 Jul 2009 16:15:43 +0000 (2 16:15 +0000)
committerNicholas Marriott <nicm@openbsd.org>
Thu, 2 Jul 2009 16:15:43 +0000 (2 16:15 +0000)
tree2ddba8ad9cd1b87903c6cbecee01cf8b92846a6f
parent4c5c125173e07dcc061aa162b08d1722c73abe7d
Fix two copy/paste bugs: forbid zero-length buffers to prevent a fatal error
when trying to paste them, found by me, and miscalculation of the start/end
causing random fatal errors when copying in copy-mode, reported by sthen.

ok sthen "put it in" deraadt
cmd-paste-buffer.c
paste.c
window-copy.c