macget fix

Info-Mac discussion from 1984 - 2002.
User avatar
Posts: 13716
Joined: December 21st, 1988, 11:00 am

macget fix

Postby Info-Mac » August 27th, 1984, 9:52 pm

Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10 UW 5/3/83; site uw-beaver
Path: utzoo!watmath!clyde!burl!ulysses!cbosgd!ucbvax!ucbcad!tektronix!uw-beaver!info-mac
From: [email protected]
Subject: macget fix
Message-ID: <[email protected]>
Date: Fri, 6-Jul-84 01:23:47 EDT
Article-I.D.: uw-beave.1006
Posted: Fri Jul 6 01:23:47 1984
Date-Received: Sun, 1-Jul-84 07:10:09 EDT
Sender: [email protected]
Organization: U of Washington Computer Science
Lines: 26

From: [email protected] (Dan Winkler)
Here's a fix to make the -u option of macget work. It was
incrementing a pointer before the cr to nl translation
but it should be incremented after.

<1> diff macget.c macget2.c
< cksum += *bp++;
> cksum += *bp;
> bp++;

So now the code reads:

for (i = 0; i < count; i++) {
cksum += *bp;
if (txtmode && *bp == '\r')
*bp = '\n';


Return to “Info-Mac Digest”

Who is online

Users browsing this forum: No registered users and 2 guests