summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/misc1.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/misc1.c b/src/misc1.c
index 3125dfe34..20890bbb1 100644
--- a/src/misc1.c
+++ b/src/misc1.c
@@ -3628,6 +3628,7 @@ vim_getenv(name, mustfree)
if (pp != NULL)
{
p = pp;
+ p[len] = NUL;
*mustfree = TRUE;
}
}