Extremely inconsequential bug in "lpq"

Mark Bartelt mark at sickkids.UUCP
Wed Jul 26 23:26:50 AEST 1989


Problem:  The "lpq" command becomes slightly illiterate if there are more
than 110 entries in the queue.

Fix:  In displayq.c/prank(), change ...

        if ((n/10) == 1)
to:                                 or to:
        if ( (n/10)%10 == 1 )                 if ( (n%100)/10 == 1 )

---------------

Mark Bartelt                          UUCP: {utzoo,decvax}!sickkids!mark
Hospital for Sick Children, Toronto   BITNET: mark at sickkids.utoronto
416/598-6442                          INTERNET: mark at sickkids.toronto.edu



More information about the Comp.bugs.4bsd.ucb-fixes mailing list