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)){