From 14f3f501bc1abc821d859e964f71e69b8ed7eaa2 Mon Sep 17 00:00:00 2001 From: Paul Smith Date: Sun, 24 May 2009 18:31:18 +0000 Subject: Found this change in an old CVS workspace: rewrite savestring() to the more standard xstrndup(). --- function.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'function.c') 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); -- cgit v1.2.3