From 72fcc53c496d81a5152fe63acc794f9f051f5fbe Mon Sep 17 00:00:00 2001 From: ceriel Date: Thu, 3 Jan 1991 13:45:22 +0000 Subject: [PATCH] Check for garbage after #include --- lang/cem/cemcom.ansi/domacro.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lang/cem/cemcom.ansi/domacro.c b/lang/cem/cemcom.ansi/domacro.c index 351c59148..926516074 100644 --- a/lang/cem/cemcom.ansi/domacro.c +++ b/lang/cem/cemcom.ansi/domacro.c @@ -307,7 +307,9 @@ do_include() filenm = (char *)0; } AccFileSpecifier = 0; - SkipToNewLine(); + if (SkipToNewLine()) { + error("bad include syntax"); + } inctable[0] = WorkingDir; if (filenm) { if (!InsertFile(filenm, &inctable[tok==FILESPECIFIER],&result)){ -- 2.34.1