* environ.cc (build_env): Ensure that win32 array is properly filled in when a

missing value has to be generated.
This commit is contained in:
Christopher Faylor 2005-04-27 03:09:59 +00:00
parent 0aedc5e99a
commit dd991a7572
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2005-04-26 Christopher Faylor <cgf@timesys.com>
* environ.cc (build_env): Ensure that win32 array is properly filled in
when a missing value has to be generated.
2005-04-26 Christopher Faylor <cgf@timesys.com>
* include/cygwin/version.h: Bump DLL minor number to 17.

View File

@ -980,7 +980,7 @@ build_env (const char * const *envp, char *&envblock, int &envc,
*dstp = spenvs[i].retrieve (no_envblock);
if (*dstp && (!no_envblock || spenvs[i].force) && *dstp != env_dontadd)
{
*pass_dstp = *dstp;
*pass_dstp++ = *dstp;
tl += strlen (*dstp) + 1;
dstp++;
}