To: djgpp-workers AT delorie DOT com Subject: Re: Support for program specific environment files References: <20emmho6of DOT fsf_-_ AT Sky DOT inp DOT nsk DOT su> From: Michael Bukin Date: 25 Mar 1999 19:39:56 +0600 In-Reply-To: Michael Bukin's message of "22 Mar 1999 22:00:48 +0600" Message-ID: <20bthhg02b.fsf@Sky.inp.nsk.su> Lines: 18 X-Mailer: Gnus v5.5/Emacs 19.34 Reply-To: djgpp-workers AT delorie DOT com In src/libc/crt0/c1loadef.c memory for new env. variable is allocated with alloca with requested size equal to size of djgpp.env. For small djgpp.env file or for large values in environment variables some entries in djgpp.env may give problems, e.g. VAR=%OTHERVAR% something may expand to size larger than djgpp.env length. It is hardly a problem for default djgpp.env (it is rather large), but it might happen for edited djgpp.env and for program specific environment files. The problem can be shifted a little by requesting larger temporary buffer, for example by adding fixed amount to its size. -- Michael Bukin