Path: utzoo!attcan!uunet!ncrlnk!ncr-sd!hp-sdd!hplabs!hpda!hpcuhb!hpcllla!hpclisp!hpclscu!shankar From: shankar@hpclscu.HP.COM (Shankar Unni) Newsgroups: comp.lang.c Subject: Re: expanding argv[] Message-ID: <660021@hpclscu.HP.COM> Date: 7 Oct 88 17:22:57 GMT References: <13893@mimsy.UUCP> Organization: HP NSG/ISD California Language Lab Lines: 10 > There is nothing particularly Pascal-ish about this. It is, however, > wrong. argv[] is not allocated by malloc(), or not guaranteed to be so > allocated, and therefore it is wrong to call realloc on it. Whoops! foot-in-mouth. I remember now (sound of slapping on forehead :-))! Well, go on, use calloc instead and copy over the existing argv array.. -- Shankar