Article View: comp.sys.mac
Article #29138Re: I just thrashed my Hard Disk!
From: Retief of the CDT
Date: Tue, 14 Jun 1988 18:22
Date: Tue, 14 Jun 1988 18:22
25 lines
1103 bytes
1103 bytes
You might try checking this:
In at least LSC version 2.01 (don't know about the rest, they've never
sent me anything about updates, and I never bothered to pull them off the
net) there is a bug in malloc().
malloc looks something like this:
char *
malloc(size)
unsigned short size;
{
return(NewPtr(size));
}
The problem here is that NewPtr() expects a long not an unsigned short.
Casting it to a long will fix this.
(ie: return(NewPtr((long)size)); )
>>=========================================================================
>> "Back off, man! I'm a scientist!" - Peter Venkman.
"Back off, man! I'm a computer scientist!" - Steve Hawley
Steve Hawley
sdh@bellcore.com
hawley@oberlin.edu
Technical Details
Message-ID:
<1152@thumper.bellcore.com>Path:
arc1-ca.pugleaf.net!utzoo!attcan!uunet!husc6!rutgers!bellcore!faline!thumper!sdhReferences:
<3599@okstate.UUCP>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!husc6!rutgers!bellcore!faline!thumper!sdh From: sdh@thumper.bellcore.com (Retief of the CDT) Newsgroups: comp.sys.mac Subject: Re: I just thrashed my Hard Disk! Message-ID: <1152@thumper.bellcore.com> Date: 14 Jun 88 18:22:00 GMT References: <3599@okstate.UUCP> Reply-To: sdh@thumper.UUCP (Steve Hawley) Organization: Bellcore MRE Lines: 25