[m-dev.] spot the bug

Fergus Henderson fjh at cs.mu.OZ.AU
Tue Aug 22 02:50:32 AEST 2000


On 21-Aug-2000, Peter Ross <peter.ross at miscrit.be> wrote:
> The attached file segfaults when compiled with MSVC in realloc when
> size=32.  AFAICT this is a library bug in the MSVC realloc
> implementation, but to be sure I thought I would see if any other eyes
> could see any spots where I could have stuffed up.

			realloc(p, sizeof(char) * size);

That should be

			p = realloc(p, ...);
			^^^

-- 
Fergus Henderson <fjh at cs.mu.oz.au>  |  "I have always known that the pursuit
WWW: <http://www.cs.mu.oz.au/~fjh>  |  of excellence is a lethal habit"
PGP: finger fjh at 128.250.37.3        |     -- the last words of T. S. Garp.
--------------------------------------------------------------------------
mercury-developers mailing list
Post messages to:       mercury-developers at cs.mu.oz.au
Administrative Queries: owner-mercury-developers at cs.mu.oz.au
Subscriptions:          mercury-developers-request at cs.mu.oz.au
--------------------------------------------------------------------------



More information about the developers mailing list