🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.bugs.4bsd
Article #43

Extremely inconsequential bug in "lpq"

#43
From: Mark Bartelt
Date: Wed, 26 Jul 1989 13:26
14 lines
946 bytes
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@sickkids.utoronto
416/598-6442                          INTERNET: mark@sickkids.toronto.edu
Technical Details
Message-ID: <303@sickkids.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!dptcdc!sickkids!mark

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!dptcdc!sickkids!mark
From: mark@sickkids.UUCP (Mark Bartelt)
Newsgroups: comp.bugs.4bsd
Subject: Extremely inconsequential bug in "lpq"
Summary: ... 109th, 110th, 111st, 112nd, 113rd, ...
Message-ID: <303@sickkids.UUCP>
Date: 26 Jul 89 13:26:50 GMT
Reply-To: mark@sickkids.UUCP (Mark Bartelt)
Organization: Hospital for Sick Children, Toronto
Lines: 14