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(). --- variable.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'variable.c') diff --git a/variable.c b/variable.c index 3dc8a22..4dafab1 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); -- cgit v1.2.3