Path: utzoo!utgpu!news-server.csri.toronto.edu!clyde.concordia.ca!uunet!mailrus!ames!pacbell!att!cbnewsd!jrstu From: jrstu@cbnewsd.ATT.COM (james.stuhlmacher) Newsgroups: comp.os.minix Subject: Bug in 1.5.5 pr(1) Message-ID: <13753@cbnewsd.ATT.COM> Date: 23 Mar 90 04:37:05 GMT Reply-To: jrstu@cbnewsd.ATT.COM (james.stuhlmacher,ih,) Organization: AT&T Bell Laboratories Lines: 47 For the first 10 minutes of each hour pr(1) will print the minutes on the header of each page incorrectly. If the time is nine minutes after five, pr(1) will print 5:9 instead of 5:09. The following patch file will fix this. Jim Stuhlmacher j.stuhlmacher@att.com ..!att!ihlpb!jims #! /bin/sh # This is a shell archive. Remove anything before this line, then unpack # it by saving it into a file and typing "sh file". To overwrite existing # files, type "sh file -c". You can also feed this as standard input via # unshar, or by typing "sh 'pr.cdif' <<'END_OF_FILE' X*** opr.c Thu Mar 22 22:33:18 1990 X--- npr.c Thu Mar 22 22:33:04 1990 X*************** X*** 506,510 **** X } X X /* At this point, 'year', 'month', 'day', 'hour', 'minute' ok */ X! printf("\n\n%s %d %0d:%0d %d", moname[month], day + 1, hour + 0, minute, year); X } X--- 506,510 ---- X } X X /* At this point, 'year', 'month', 'day', 'hour', 'minute' ok */ X! printf("\n\n%s %2d %2d:%02d %d", moname[month], day+1, hour, minute, year); X } END_OF_FILE if test 450 -ne `wc -c <'pr.cdif'`; then echo shar: \"'pr.cdif'\" unpacked with wrong size! fi # end of 'pr.cdif' fi echo shar: End of shell archive. exit 0