OK, I've split this change into three patches. The cumulative affect of these is:
kpress() is now much more straightforward and has no memcpy() calls. selnotify() now supports MODE_ECHO. I couldn't remove the cast there however. A new ttysend() function replaces all ttywrite();techo() sequences. -Mark
0001-Simplify-Mod1-logic-in-kpress-eliminating-locals-and.patch
Description: Binary data
0002-Avoid-buffer-overrun-in-kpress-and-remove-limit-on-s.patch
Description: Binary data
0003-New-ttysend-function-calls-ttywrite-and-techo.patch
Description: Binary data