From b9770941ae829ad2cb985efe809d6e3dd690648b Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Fri, 7 Oct 2011 18:02:34 -0700 Subject: Call strdup directly, instead of via copy macro Signed-off-by: Alan Coopersmith --- parse.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'parse.c') diff --git a/parse.c b/parse.c index 0496388..d14cbf8 100644 --- a/parse.c +++ b/parse.c @@ -376,7 +376,7 @@ define2(const char *name, const char *val, struct inclist *file) debug(1,("redefining %s from %s to %s in file %s\n", name, (*sp)->s_value, val, file->i_file)); free((*sp)->s_value); - (*sp)->s_value = copy(val); + (*sp)->s_value = strdup(val); return; } @@ -392,8 +392,8 @@ define2(const char *name, const char *val, struct inclist *file) fatalerr("malloc()/realloc() failure in insert_defn()\n"); debug(1,("defining %s to %s in file %s\n", name, val, file->i_file)); - stab->s_name = copy(name); - stab->s_value = copy(val); + stab->s_name = strdup(name); + stab->s_value = strdup(val); *sp = stab; } -- cgit v1.2.1