summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--variable.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/variable.c b/variable.c
index ab29f02..5a2c861 100644
--- a/variable.c
+++ b/variable.c
@@ -362,7 +362,7 @@ define_automatic_variables ()
{
free (v->value);
v->origin = o_file;
- v->value = savestring (default_shell, 7);
+ v->value = savestring (default_shell, strlen (default_shell));
}
/* Make sure MAKEFILES gets exported if it is set. */