Article View: net.micro.mac
Article #336Bug in macget.c
From: Bruce Pinn
Date: Mon, 14 Jan 1985 17:15
Date: Mon, 14 Jan 1985 17:15
12 lines
831 bytes
831 bytes
The tgetrec routine in macget should have the line return chsum replaced by the line return (chksum & BYTEMASK); This change is for VAXEN only. The problem comes up when the checksum is 255. The VAX sign extends the checksum resulting in -1 being returned. This is not good!!! My regrets if this bug has already been found and posted. Bruce Pinn
Technical Details
Message-ID:
<337@utcs.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!utcs!bwpShow Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site utcs.UUCP Path: arc1-ca.pugleaf.net!utzoo!utcs!bwp From: bwp@utcs.UUCP (Bruce Pinn) Newsgroups: net.micro.mac Subject: Bug in macget.c Message-ID: <337@utcs.UUCP> Date: Mon, 14-Jan-85 12:15:17 EST Article-I.D.: utcs.337 Posted: Mon Jan 14 12:15:17 1985 Date-Received: Mon, 14-Jan-85 12:19:25 EST Organization: University of Toronto - General Purpose UNIX Lines: 13