summaryrefslogtreecommitdiff
path: root/variable.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
commitcce957c4f5348ee9d057816ac31ad46cedd3bc83 (patch)
treedff17f1aa8f78ee5a59b32b0beedf6c37a7adf82 /variable.c
parent9501a902cdb13bfb0aa90bad32c11c1be8c70aee (diff)
downloadmake-cce957c4f5348ee9d057816ac31ad46cedd3bc83.tar.gz
Found this change in an old CVS workspace: rewrite savestring() to the
more standard xstrndup().
Diffstat (limited to 'variable.c')
-rw-r--r--variable.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/variable.c b/variable.c
index 3dc8a228..4dafab16 100644
--- a/variable.c
+++ b/variable.c
@@ -206,7 +206,7 @@ define_variable_in_set (const char *name, unsigned int length,
/* Create a new variable definition and add it to the hash table. */
v = xmalloc (sizeof (struct variable));
- v->name = savestring (name, length);
+ v->name = xstrndup (name, length);
v->length = length;
hash_insert_at (&set->table, v, var_slot);
v->value = xstrdup (value);