On Tue, May 08, 2012 at 06:19:55PM +0200, Thomas Pfaff wrote: > On Tue, 8 May 2012 09:55:53 -0400 > Okan Demirmen <o...@demirmen.com> wrote: > > > > Not really a pasto; from putenv(): > > > > P = (char **)realloc(lastenv, sizeof(char *) * (cnt + 2)); > > *puke* > > Ok?
If you want to drop the first cast, you might want to spell it sizeof(*P) as well... Joerg