[m-dev.] spot the bug

Peter Ross peter.ross at miscrit.be
Tue Aug 22 03:11:41 AEST 2000


On Tue, Aug 22, 2000 at 02:50:32AM +1000, Fergus Henderson wrote:
> 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, ...);
> 			^^^

If you weren't so far away, I would kiss you!

Thanks,
Pete
--------------------------------------------------------------------------
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