Re: [PATCH maint] builtin-merge.c: fix memory under-allocation
- From
Miklos Vajna <vmiklos@frugalware.org>
- Date
- Oct 9, 2008, 00:17 UTC
- Message-ID
- <20081009001727.GP536@genesis.frugalware.org>
- In-Reply-To
- <ZuhLzndR5Uvj7-_NyasP-FHF3AqTyLx-0sjNHMd0BC3LXC8LdLqBeQ@cipher.nrlssc.navy.mil>
On Wed, Oct 08, 2008 at 07:07:54PM -0500, Brandon Casey <casey@nrlssc.navy.mil> wrote:
> While we're at it, change the allocation to reference the variable it is > allocating memory for to try to prevent a similar mistake if the type is > changed in the future.
If this is really a problem, then I think it would be good to mention this in Documentation/CodingGuidelines.