From b3b117a77fa5835d6e41b4a545fadd3e06733e6e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Henrik=20Grubbstr=C3=B6m=20=28Grubba=29?=
 <grubba@grubba.org>
Date: Fri, 15 May 1998 20:30:21 +0200
Subject: [PATCH] Some additional paranoia.

Rev: src/lex.c:1.54
---
 src/lex.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/lex.c b/src/lex.c
index b3b0c0dd0f..d765256f92 100644
--- a/src/lex.c
+++ b/src/lex.c
@@ -4,7 +4,7 @@
 ||| See the files COPYING and DISCLAIMER for more information.
 \*/
 #include "global.h"
-RCSID("$Id: lex.c,v 1.53 1998/05/12 23:51:26 hubbe Exp $");
+RCSID("$Id: lex.c,v 1.54 1998/05/15 18:30:21 grubba Exp $");
 #include "language.h"
 #include "array.h"
 #include "lex.h"
@@ -550,7 +550,11 @@ static int yylex2(YYSTYPE *yylval)
 	}
 	
       badhash:
-	my_yyerror("Unknown directive #%s.",buf);
+	if (sizeof(buf) < 1024) {
+	  my_yyerror("Unknown preprocessor directive #%s.",buf);
+	} else {
+	  my_yyerror("Unknown preprocessor directive.");
+	}
 	SKIPUPTO('\n');
 	continue;
       }
-- 
GitLab