From ecef922df15c9c315be48871a59b311bd2477f3c Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Thu, 18 Dec 2014 19:55:53 +0000 Subject: 34008: metafy the environment on arrival in the shell --- Src/params.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Src/params.c') diff --git a/Src/params.c b/Src/params.c index b87598a02..1c51afd7a 100644 --- a/Src/params.c +++ b/Src/params.c @@ -641,7 +641,7 @@ split_env_string(char *env, char **name, char **value) if (!env || !name || !value) return 0; - tenv = strcpy(zhalloc(strlen(env) + 1), env); + tenv = metafy(env, strlen(env), META_HEAPDUP); for (str = tenv; *str && *str != '='; str++) ; if (str != tenv && *str == '=') { -- cgit 1.4.1