summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2000-07-01 00:21:23 +0000
committerMarc Espie <espie@cvs.openbsd.org>2000-07-01 00:21:23 +0000
commit4223557f5fb36d1d42809dfa9835041b7450b90c (patch)
tree647b2e0a609657bd4a752cef506dfbbeeeece1d4 /usr.bin
parent80b9224fd5c4494a47d7068ccf1d6038b3000bae (diff)
Forgot to import one estrdup from my trunk.
Ensure make prints sane error messages when obj/ exists.
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/make/main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/make/main.c b/usr.bin/make/main.c
index 95ec5f71af8..f4b6c2dd024 100644
--- a/usr.bin/make/main.c
+++ b/usr.bin/make/main.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: main.c,v 1.37 2000/06/23 16:39:45 espie Exp $ */
+/* $OpenBSD: main.c,v 1.38 2000/07/01 00:21:22 espie Exp $ */
/* $NetBSD: main.c,v 1.34 1997/03/24 20:56:36 gwr Exp $ */
/*
@@ -49,7 +49,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)main.c 8.3 (Berkeley) 3/19/94";
#else
-static char rcsid[] = "$OpenBSD: main.c,v 1.37 2000/06/23 16:39:45 espie Exp $";
+static char rcsid[] = "$OpenBSD: main.c,v 1.38 2000/07/01 00:21:22 espie Exp $";
#endif
#endif /* not lint */
@@ -886,7 +886,7 @@ ReadMakefile(p, q)
if (curdir != objdir && *fname != '/') {
(void)sprintf(path, "%s/%s", curdir, fname);
if ((stream = fopen(path, "r")) != NULL) {
- fname = path;
+ fname = estrdup(path);
goto found;
}
}