greg@trigraph.UUCP (Gregory Hill) (01/07/85)
Description: There is a bug in the V7 and 4.2BSD pr(1) command that occurs very rarely: the first character of a page is printed incorrectly. (The -m option is not used.) Repeated by: Very difficult: create a file that has more than 6720 characters and the 6720th character of the file occurs at the start of a page. This character will be printed incorrectly. Solution: The print() routine calls tpgetc() to check if there is any more file to print before printing out the header. When backing up the input to actual print the character, one of the statements used is: colp[ncol] = &buffers[BUFS]; The statement should be: colp[ncol] = &buffers[BUFS] - 1;