Date: Fri, 23 Nov 2001 18:50:02 -0800 (PST) From: Andrew <andrew@ugh.net.au> To: freebsd-doc@freebsd.org Subject: Re: docs/31925: Be a bit more descriptive about realloc's usage Message-ID: <200111240250.fAO2o2v17609@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR docs/31925; it has been noted by GNATS. From: Andrew <andrew@ugh.net.au> To: Giorgos Keramidas <charon@labs.gr> Cc: FreeBSD-gnats-submit@freebsd.org Subject: Re: docs/31925: Be a bit more descriptive about realloc's usage Date: Sat, 24 Nov 2001 12:47:49 +1000 (EST) On Thu, 22 Nov 2001, Giorgos Keramidas wrote: > thanks for pointing this out. A very usual cause of bugs when > realloc() is used is to assume that realloc() returns the same value > passed as a parameter :) Yes I have to admit it bit me...even though I did know that from last time I used realloc :-) > portion of memory' to refer to the result of realloc(3). What do you > think of the following diff, which is derived from your changes? Yep I think thats great. Thanks, Andrew To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200111240250.fAO2o2v17609>