From 824060d705fc4b4090f9233f5f290434a3e7d32b Mon Sep 17 00:00:00 2001 From: Hartmut Brandt Date: Tue, 10 May 2005 14:23:31 +0000 Subject: [PATCH] Path_Expand() expects its first argument to be writeable so put the default system directory into a writeable character array before passing it to Path_Expand(). Submitted by: Max Okumoto (7.210) --- usr.bin/make/main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/usr.bin/make/main.c b/usr.bin/make/main.c index 1229b204478..77be9f453f3 100644 --- a/usr.bin/make/main.c +++ b/usr.bin/make/main.c @@ -862,8 +862,9 @@ main(int argc, char **argv) /* Path of sys.mk */ Lst sysMkPath = Lst_Initializer(sysMkPath); LstNode *ln; + char defsysmk[] = PATH_DEFSYSMK; - Path_Expand(PATH_DEFSYSMK, &sysIncPath, &sysMkPath); + Path_Expand(defsysmk, &sysIncPath, &sysMkPath); if (Lst_IsEmpty(&sysMkPath)) Fatal("make: no system rules (%s).", PATH_DEFSYSMK); LST_FOREACH(ln, &sysMkPath) { -- 2.45.2