Found this change in an old CVS workspace: rewrite savestring() to the

more standard xstrndup().
This commit is contained in:
Paul Smith
2009-05-24 18:31:18 +00:00
parent 3fd62c76c2
commit 14f3f501bc
8 changed files with 33 additions and 14 deletions

View File

@@ -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);