From ddce10852d9316eeff643ea7b1d3f9a99aa5f8a1 Mon Sep 17 00:00:00 2001 From: etheisen Date: Sat, 28 Sep 1996 04:30:40 +0000 Subject: strdup() not needed for makefile names. --- distrib/crunch/crunchgen/crunchgen.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'distrib/crunch') diff --git a/distrib/crunch/crunchgen/crunchgen.c b/distrib/crunch/crunchgen/crunchgen.c index c52fec85dfd..c86d6f193ff 100644 --- a/distrib/crunch/crunchgen/crunchgen.c +++ b/distrib/crunch/crunchgen/crunchgen.c @@ -1,4 +1,4 @@ -/* $OpenBSD: crunchgen.c,v 1.5 1996/09/27 06:06:58 etheisen Exp $ */ +/* $OpenBSD: crunchgen.c,v 1.6 1996/09/28 04:30:39 etheisen Exp $ */ /* * Copyright (c) 1994 University of Maryland * All Rights Reserved. @@ -524,7 +524,7 @@ void fillin_program(prog_t *p) for (i = 0; mf_name[i] != NULL; i++) { sprintf(path, "%s/%s", p->srcdir, mf_name[i]); if (is_nonempty_file(path)) { - p->mf_name = strdup(mf_name[i]); + p->mf_name = mf_name[i]; fillin_program_objs(p, path); break; } -- cgit v1.2.3