diff --git a/lang/m2/comp/main.c b/lang/m2/comp/main.c index 20b8cb486..5839c690f 100644 --- a/lang/m2/comp/main.c +++ b/lang/m2/comp/main.c @@ -40,7 +40,7 @@ char options[128]; int DefinitionModule; char *ProgName; char **DEFPATH; -int nDEF = 1, mDEF = 10; +int nDEF = 2, mDEF = 10; int pass_1 = 1; t_def *Defined; extern int err_occurred; @@ -56,6 +56,7 @@ main(argc, argv) ProgName = *argv++; DEFPATH = (char **) Malloc((unsigned)mDEF * sizeof(char *)); + DEFPATH[1] = 0; while (--argc > 0) { if (**argv == '-') diff --git a/lang/m2/comp/proto.make b/lang/m2/comp/proto.make index 688390810..1a4536e2d 100644 --- a/lang/m2/comp/proto.make +++ b/lang/m2/comp/proto.make @@ -98,6 +98,8 @@ make_macros: Makefile echo 'COPTIONS=$(COPTIONS)' >> make_macros echo 'LDOPTIONS=$(LDOPTIONS)' >> make_macros echo 'LINT=$(LINT)' >> make_macros + echo 'LINTSUF=$(LINTSUF)' >> make_macros + echo 'LINTPREF=$(LINTPREF)' >> make_macros echo 'LINTOPTIONS=$(LINTOPTIONS)' >> make_macros echo 'SUF=$(SUF)' >> make_macros echo 'LIBSUF=$(LIBSUF)' >> make_macros