]> granicus.if.org Git - sudo/commit
Don't try to pre-compute the size of the new envp, just allocate
authorTodd C. Miller <Todd.Miller@courtesan.com>
Thu, 2 May 2002 19:40:25 +0000 (19:40 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Thu, 2 May 2002 19:40:25 +0000 (19:40 +0000)
commit3f7d80188096e438b54e3a835c69123a6ea40d11
tree66711f6362d3d4007f4b0c7b8002d8c1c969ed1d
parent4160f7eb70e3e738d0b791ab4b9f647df9688df7
Don't try to pre-compute the size of the new envp, just allocate
space up front and realloc as needed.  Changes to the new env pointer
must all be made through insert_env() which now keeps track of
spaced used and allocates as needed.
env.c