summaryrefslogtreecommitdiff
path: root/function.c
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2009-05-24 18:31:18 +0000
committerPaul Smith <psmith@gnu.org>2009-05-24 18:31:18 +0000
commit14f3f501bc1abc821d859e964f71e69b8ed7eaa2 (patch)
treedff17f1aa8f78ee5a59b32b0beedf6c37a7adf82 /function.c
parent3fd62c76c261e10658a1ba365710ee26b6fb34fe (diff)
downloadgunmake-14f3f501bc1abc821d859e964f71e69b8ed7eaa2.tar.gz
Found this change in an old CVS workspace: rewrite savestring() to the
more standard xstrndup().
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);