Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!cmcl2!phri!roy From: roy@phri.UUCP (Roy Smith) Newsgroups: comp.unix.wizards Subject: Re: my stupid question about malloc Message-ID: <3020@phri.UUCP> Date: Tue, 10-Nov-87 07:57:19 EST Article-I.D.: phri.3020 Posted: Tue Nov 10 07:57:19 1987 Date-Received: Thu, 12-Nov-87 22:06:45 EST Organization: Public Health Research Institute, NYC, NY Lines: 15 In article <3015@phri.UUCP> I asked a stupid question about malloc, and sort of accused Sun's malloc of having a bug. Of course, the bug was not in malloc, but in my own code, saying "xp = (x *) malloc (n)" instead of "xp = (x *) malloc (n * sizeof (x))". I posted that question after a long frustrating day (why doesn't lint catch these things:-)) and then went to watch the latest episode of "Star Trek: The Next Generation" on TV. By the time the show was over, I figured out what the problem was and cancled the article. Not soon enough, it seems, by the number of replies I've gotten. -- Roy Smith, {allegra,cmcl2,philabs}!phri!roy System Administrator, Public Health Research Institute 455 First Avenue, New York, NY 10016