For the second patch, use the patch at http://www.farley.org/freebsd/tmp/PR/104731/lpq-patch2.txt since it handles the case where the printer sends back a single character upon the last read().