summaryrefslogtreecommitdiff
path: root/function.c
diff options
context:
space:
mode:
Diffstat (limited to 'function.c')
-rw-r--r--function.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/function.c b/function.c
index 10d3d6b..34d357a 100644
--- a/function.c
+++ b/function.c
@@ -853,7 +853,7 @@ func_foreach (char *o, char **argv, const char *funcname UNUSED)
char *result = 0;
free (var->value);
- var->value = savestring (p, len);
+ var->value = xstrndup (p, len);
result = allocated_variable_expand (body);