* Do not forget room for last NULL of new environment (was local bug 35866)

This commit is contained in:
Werner Fink 2012-03-19 12:50:36 +00:00
parent 99a0a2583f
commit ec06765756
2 changed files with 3 additions and 1 deletions

View File

@ -1,6 +1,8 @@
sysvinit (2.89dsf) UNRELEASED; urgency=low sysvinit (2.89dsf) UNRELEASED; urgency=low
[ Werner Fink ] [ Werner Fink ]
* Do not forget room for last NULL of new environment (was
local bug 35866)
* Handle deleted binaries in pidof (was local bug #34992) * Handle deleted binaries in pidof (was local bug #34992)
* Allow init to delte extra environment variables (was local bug * Allow init to delte extra environment variables (was local bug
#35858) #35858)

View File

@ -916,7 +916,7 @@ char **init_buildenv(int child)
for (n = 0; environ[n]; n++) for (n = 0; environ[n]; n++)
; ;
n += NR_EXTRA_ENV; n += NR_EXTRA_ENV + 1; /* Also room for last NULL */
if (child) if (child)
n += 8; n += 8;