diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2003-05-08 20:55:06 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2003-05-08 20:55:06 +0000 |
commit | 92123554d19cb1b6fc10adb7a5118fc02e564f19 (patch) | |
tree | 687b2eff704de725c6c3a652d3685161a42b05e1 /usr.bin/sudo/env.c | |
parent | f940b35d4f2435bd7761e186e78d67bf5df8b44c (diff) |
Update to 1.6.7p5
Diffstat (limited to 'usr.bin/sudo/env.c')
-rw-r--r-- | usr.bin/sudo/env.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/sudo/env.c b/usr.bin/sudo/env.c index 48aa221753a..0308d169981 100644 --- a/usr.bin/sudo/env.c +++ b/usr.bin/sudo/env.c @@ -250,8 +250,8 @@ insert_env(str, dupcheck) char **nep; size_t varlen; - /* Make sure there is room for the new entry. */ - if (env_len + 1 > env_size) { + /* Make sure there is room for the new entry plus a NULL. */ + if (env_len + 2 > env_size) { env_size += 128; new_environ = erealloc3(new_environ, env_size, sizeof(char *)); } |