mirror of
https://github.com/mirror/make.git
synced 2026-08-09 17:38:47 +00:00
Found this change in an old CVS workspace: rewrite savestring() to the
more standard xstrndup().
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user