Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!uflorida!haven!ncifcrf!nlm-mcs!adm!smoke!gwyn From: gwyn@smoke.ARPA (Doug Gwyn ) Newsgroups: comp.lang.c Subject: Re: How big is the argv[] array? Message-ID: <8647@smoke.ARPA> Date: 7 Oct 88 09:26:38 GMT References: <1239500004@osiris.cso.uiuc.edu> <660020@hpclscu.HP.COM> Reply-To: gwyn@brl.arpa (Doug Gwyn (VLD/VMB) ) Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 6 In article <660020@hpclscu.HP.COM> shankar@hpclscu.HP.COM (Shankar Unni) writes: > argv = (char **) realloc (argv, newsize * sizeof (char *)) NO! NO! NO! Realloc only areas obtained from malloc (or calloc). You don't know where the argv array came from but the odds are good that it was NOT malloced by the startup module.