From aac1207beb763dc411a0d91d6a4a550ebf710a5e Mon Sep 17 00:00:00 2001 From: ceriel Date: Wed, 22 Oct 1986 15:30:46 +0000 Subject: [PATCH] Error messages are printed differently now. A '%' in an error message used to cause difficulties. --- util/LLgen/src/tokens.g | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/util/LLgen/src/tokens.g b/util/LLgen/src/tokens.g index 321a9de80..1248a5d3b 100644 --- a/util/LLgen/src/tokens.g +++ b/util/LLgen/src/tokens.g @@ -413,7 +413,11 @@ LLmessage(d) { s = cpy(LLsymb,s,0); *s = '\0'; } - error(linecount,buf); + error(linecount, "%s", buf); + /* Don't change this line to + * error(linecount, buf). + * The string in "buf" might contain '%' ... + */ if (d) { /* * Save the current token and make up some * attributes for the inserted token -- 2.34.1