fix an off-by-one error that prevented the open() check from succeeding, if stdin...