summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorespie <espie@openbsd.org>2000-07-01 00:21:22 +0000
committerespie <espie@openbsd.org>2000-07-01 00:21:22 +0000
commita3c35d488640b707a2404fe00fbd50f60fc16131 (patch)
tree9ffe09ea5e6abc9c10ae03c913ad468e516e1f19
parentdo not prin tcp/udp twice. from: fgs (diff)
downloadwireguard-openbsd-a3c35d488640b707a2404fe00fbd50f60fc16131.tar.xz
wireguard-openbsd-a3c35d488640b707a2404fe00fbd50f60fc16131.zip
Forgot to import one estrdup from my trunk.
Ensure make prints sane error messages when obj/ exists.
-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;
}
}