Path: 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 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