From f252e26ab4dae357a1a25717244d5085aec297d6 Mon Sep 17 00:00:00 2001 From: ceriel Date: Mon, 11 May 1992 16:15:28 +0000 Subject: [PATCH] Fix in previous added check --- lang/m2/comp/program.g | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lang/m2/comp/program.g b/lang/m2/comp/program.g index 7621f0673..fff51fed3 100644 --- a/lang/m2/comp/program.g +++ b/lang/m2/comp/program.g @@ -240,7 +240,7 @@ ProgramModule MODULE IDENT { len = strlen(dot.TOK_IDF->id_text); if (len > 10) len = 10; - if (strncmp(FileName, dot.TOK_IDF->id_text, 10)) { + if (strncmp(FileName, dot.TOK_IDF->id_text, len)) { warning(W_ORDINARY, "modulename %s does not match filename %s", dot.TOK_IDF->id_text, FileName); } if (state == IMPLEMENTATION) { -- 2.34.1