Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!i2unix!esacs!pizzi From: pizzi@esacs.UUCP (Riccardo Pizzi) Newsgroups: comp.unix.sysv386 Subject: Re: Putenv() & Getenv() Bug ? Message-ID: <106@esacs.UUCP> Date: 20 Feb 91 23:58:24 GMT References: <50356@olivea.atc.olivetti.com> Reply-To: pizzi@esacs.UUCP (Riccardo Pizzi(JANE)) Organization: Esa Software s.r.l. Rimini (FO), ITALY Lines: 15 In article <50356@olivea.atc.olivetti.com> borzieri@KING.ICO.OLIVETTI.COM (ivan borzieri) writes: >in the first c module I call the system function "putenv()" which should >set a variable in the environment. Make sure you are not using an automatic variable for putenv(). To be safe, explicitly malloc() the space for the data you want to putenv(). This should work. Rick -- Riccardo Pizzi @ ESA Software, Rimini, ITALY e-mail: pizzi%esacs@relay.EU.net -or- root@xtc.sublink.org Public Access Unix @ +39-541-27858 (Telebit) << Object Oriented is an Opaque Disease >>